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

Useage example? #1

Closed
gnarr opened this issue Aug 15, 2019 · 2 comments
Closed

Useage example? #1

gnarr opened this issue Aug 15, 2019 · 2 comments

Comments

@gnarr
Copy link

gnarr commented Aug 15, 2019

Hi Hamid.

Could you provide an usage example?

Thanks!

@iberodev
Copy link

yes please, could you show how do you config variables?
If it runs at runtime, are we saying that if this is conteinerized and you pass some environment variables to docker run this would work? or is it env replacement at build time?

@HamidTanhaei
Copy link
Owner

It adds your .env or .env.development variables just in the development process.
in the razzle.config.js you should add something like this config:

'use strict';

module.exports = {
  plugins: [
      ...,
      'runtimeenv'
  ]
};

for the build time, it does not work. Razzle covers ENV variables by default in the build time.
you should serve a build version of your app in docker containers.

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

3 participants