Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.env.production leads to errors #319

Closed
awthwathje opened this issue Dec 21, 2020 · 4 comments
Closed

.env.production leads to errors #319

awthwathje opened this issue Dec 21, 2020 · 4 comments

Comments

@awthwathje
Copy link

If you use .env.production file with some variables, FAB build produced with fab build cannot be served anymore with fab serve fab.zip due to:

Failed to load env from .env.production TypeError: e.info is not a function

fab deploy fails as well.

@geelen
Copy link
Contributor

geelen commented Dec 21, 2020

Ok I'll look into it, what is the (redacted) contents of your .env.production file?

@awthwathje
Copy link
Author

Just a bunch of unrelated variables:

AUTH0_DOMAIN=example.com
AUTH0_CLIENT_ID=AAAaaAaAaAAaAA
AUTH0_CLIENT_SECRET=aAaaAAaAAaAA
AUTH0_REDIRECT_URI=https://example.com/api/callback
AUTH0_POST_LOGOUT_REDIRECT_URI=http:/example.com/
AUTH0_SESSION_COOKIE_SECRET=aaAAaAAaaAaAAaaaaAAAaA

@jjcroftiv
Copy link

I wanted to comment that it doesn't need to be .env.production. I have the same issue with a .env file in my local dev environment.

@mishiyee
Copy link

mishiyee commented Feb 9, 2021

I also have this issue. Tried with both .env.local and .env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants