How to config service account at workspace IDX for connect node with google firestore and read and write data.
At local enviroment this procedure is export GOOGLE_APPLICATION_CREDENTIALS
How to config service account at workspace IDX for connect node with google firestore and read and write data.
At local enviroment this procedure is export GOOGLE_APPLICATION_CREDENTIALS
You can do the same in IDX… download the service account from firebase and then you can drag and drop the file in you idx workspace and use the path to load the service account just like you would in local
Thanks, i have a questions. If i draw the file, this file is new at the repository, so if i keep the repsitory and the workspace ok i would be commit at file, it is bad practice.
you need to added it to gitignore file and commit. If you share the workspace then better to delete it and have other devs in your team upload there own copy
thanks, i add the dev.nix file at the root and the configuration is
env = {
GOOGLE_APPLICATION_CREDENTIALS = “/home/user/project/key.json”;
};
But i have the error:
<body><a
href="//www.google.com"><span aria-label="Google" role="img"><img alt="" src="//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png"></span></a>
<p><b>401:</b> The Workstation does not exist or your currently signed in account does not have access to it.
<eye3 title='/Workstations.GetWorkstation, PERMISSION_DENIED'/>
APPLICATION_ERROR;google.cloud.workstations.v1beta/Workstations.GetWorkstation;Permission
'workstations.workstations.get' denied on
'projects/monospace-1/locations/us-east4/workstationClusters/workstation-cluster-9/workstationConfigs/monospace-config-web/workstations/idx-sougile-metricas-api-1719233403691';AppErrorCode=7;StartTimeMs=1720457676522;unknown;Deadline(sec)=10.0;ResFormat=uncompressed;ServerTimeSec=0.182433094;LogBytes=256;Non-FailFast;EffSecLevel=privacy_and_integrity;ReqFormat=uncompressed;ReqID=217c8e442cc9b79;GlobalID=0;Server=[2002:a05:6664:8390:b0:25:e7e7:196e]:4002
</p>
</body>