#✅ - using .env.local file

1 messages · Page 1 of 1 (latest)

hazy rune
#

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.

grizzled fulcrum
#

👋 I would do this in amplify/backend.ts before you call defineBackend()

fiery kindleBOT
#

✅ - using .env.local file