Setting up ENV variables and checking Node.Js logs in IDE for API with Firestore

Would be very thankful if anyone has pointers on how to set up env variables in the IDE?

Short of it is, I am trying to wrangle a feature on my web app to worth through the backend via the API with Firebase (for user account creation etc).

I am trying to set this variable so the API can create and do user stuff via the backend: FIREBASE_SERVICE_ACCOUNT_JSON

in the logs I am looking for something like this: " * Firebase Admin SDK initialized successfully via adminConfig.ts."

No clue how to set this up correctly in this environment (preview I guess - I haven’t even gotten as far as deploying and trying to troubleshoot my app in that mess). Also trying to look at the server logs but either can’t find them, or the ones I can find don’t seem to have an output that has what I am looking for.

I have done all I can but whenever I try to say create a user (used to work via the web app, but the issue was it would create login/session issues) via the API I get stuff like this:

https://6000-firebase-studio-1747955010345.cluster-3ch54x2epbcnetrm6ivbqqebjk.cloudworkstations.dev/api/admin/create-APPNAME-user 503 (Service Unavailable)

addKAPPNAMESystemUser @ firestoreService.ts:1322
await in addAPPNAMESystemUser
onSubmitAPPNAMEUserForm @ page.tsx:121

firestoreService.addAPPNAMESystemUser: API call failed. {error: ‘Internal server error: Admin SDK not configured. Please check server logs.’}error: “Internal server error: Admin SDK not configured. Please check server logs.”[[Prototype]]: Object

page.tsx:134 Error adding APPNAME system user: Error: Internal server error: Admin SDK not configured. Please check server logs.
at addAPPNAMESystemUser (firestoreService.ts:1335:11)
at async onSubmitAPPNAMEUserForm (page.tsx:121:9)"

:man_shrugging: HELP

Thanks!