Environmental Variables for Flask NextJS Application
Unanswered
Bald Eagle posted this in #help-forum
Bald EagleOP
How should I go about accessing environmental variables for my nextjs application from my flask backend? Does anyone have any recommendations?
1 Reply
Bald EagleOP
I am currently attempting to access keys in flask by doing
Is it possible to do this (https://stackoverflow.com/questions/40643498/cannot-get-environment-variables-set-in-flask-application) through the cli in NextJS?
If I can run this command in the setup environment
print os.environ.get('key')Is it possible to do this (https://stackoverflow.com/questions/40643498/cannot-get-environment-variables-set-in-flask-application) through the cli in NextJS?
If I can run this command in the setup environment
export KEY=value, I will have access to keys in flask.