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

In production ".env.${MODE}" file is not taken in account #104

Open
sneko opened this issue Jun 11, 2019 · 1 comment
Open

In production ".env.${MODE}" file is not taken in account #104

sneko opened this issue Jun 11, 2019 · 1 comment

Comments

@sneko
Copy link

sneko commented Jun 11, 2019

Hi,

Just noticed that when going to production (ssr:build and ssr:start) in the entry-server.js I'm able to access all environment variables from .env but not those from .env.${MODE} (with MODE being your custom mode).

Note that I'am specifying the --mode when building and starting the app.

Thank you,

@waydelyle
Copy link
Contributor

Webpack will bundle the environment variables at build time, so you cannot have different environment variables at run time.

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

2 participants