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

Consider reading environment variables at runtime #119

Open
vikoivun opened this issue Mar 11, 2022 · 0 comments
Open

Consider reading environment variables at runtime #119

vikoivun opened this issue Mar 11, 2022 · 0 comments

Comments

@vikoivun
Copy link
Member

Currently environment variables are baked into the bundle (or so I assume, given that they need to be present during build).
Consider writing them into window like so:
https://create-react-app.dev/docs/title-and-meta-tags#injecting-data-from-the-server-into-the-page

We can then replace them just before starting the web server.

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

1 participant