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

Debug vs prod configuration support #7

Open
nkrusch opened this issue Aug 20, 2020 · 2 comments
Open

Debug vs prod configuration support #7

nkrusch opened this issue Aug 20, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@nkrusch
Copy link
Contributor

nkrusch commented Aug 20, 2020

Describe the solution you'd like
Enable way to setup project config files that can be easily changed between dev and prod builds, for example, to switch out API endpoints.

@nkrusch
Copy link
Contributor Author

nkrusch commented Aug 29, 2021

Node env variables should be able to handle this. CRA implements a way to inject env variables this way both in js and in HTML files and it requires a specific prefix ref, which are then replaced at build time. Similar approach could work here. It would also need to be documented in user guide.

@Gentatsu
Copy link

Gentatsu commented Jul 4, 2023

+1 on this. Would be great to deal with it like that at build time to be passed in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants