#✅ - using .env.local file
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
I want to call dotenv.config as early in the backend setup as possible. Where should I do this? Everywhere I have tried so far leads to: "The value of environment variable... is undefined" I need it to configure before any defineFunction calls are executed.
👋 I would do this in amplify/backend.ts before you call defineBackend()
✅ - using .env.local file