Next.js Discord

Discord Forum

Pass environment variables to python file that is using FastAPI

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
I'm running it on local dev using the dotenv package in my python file and grabbing the API key from my .env.local file. But when I try pushing the codebase to production, it doesn't grab the API key. How do I fix it

0 Replies