Rank 2: Process
For some reason my globally defined env variables are not available in my functions.
I have tried to:
- Delete and recreate the variables
- Restart all containers
- Use local variables for the functions
- Redeploy the function
But still none of these actions fixed the issue.
I'm logging the variables like this:
const client = new Client()
.setEndpoint(process.env.APPWRITE_ENDPOINT ?? '')
.setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID ?? '')
.setKey(process.env.APPWRITE_API_KEY ?? '');
log(process.env.APPWRITE_ENDPOINT);
log(process.env.APPWRITE_FUNCTION_PROJECT_ID);
log(process.env.APPWRITE_API_KEY);
But the output the env variables are all empty strings except for APPWRITE_FUNCTION_PROJECT_ID.
I'm using version 1.4.5.
I see this issue was posted earlier: https://discord.com/channels/564160730845151244/1146971163403223040
But was not really resolved.