Skip to content

What is the suggested way of setting ENV variables that are expected to show up in process.env? #346

Closed Answered by Judahmeek
demitrious-tom asked this question in Q&A
Discussion options

You must be logged in to vote

@demitrious-tom you're right that won't work.

Your options are to either pass the value as props to your bundled application or to use a webpack loader, such as https://webpack.js.org/plugins/define-plugin/, to set those environment variables at compile-time.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@demitrious-tom
Comment options

@Judahmeek
Comment options

Answer selected by Judahmeek
@demitrious-tom
Comment options

@demitrious-tom
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #345 on August 11, 2023 05:48.