-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Audit Web Environment Variables DX and Current Functionality #4503
Comments
@dac09 So far, it's all working in production according to docs. However, I am confused as to why locally I can't access value when using I suspect once I add |
Precisely the problem I was pointing out @Tobbe - there's inconsistencies between how we're saying it should work, and how it actually does. |
...in production... The docs have always referred to production settings. Maybe not clearly enough. Agree that the discrepancy is confusing. |
For Ohh, hmm, Deployed to Netlify it does look like it should |
To add some color here (I think this is the right place, if not apologies and will open a separate ticket), If I try and manually override this env var, bad things happen. Code such as that listed below makes it so Storybook builds only sometimes work in non production environments.
|
Related to work on #4334 and #4461
cc @dac09
Discussion Topics
Deployment test
console.log(process.env.X)
where X = ...:Goals:
Deployed Test
Netlify Site
https://hardcore-mestorf-245ef2.netlify.app
GitHub Repo
https://github.com/redwoodjs/env-var-test
Home page:
https://github.com/redwoodjs/env-var-test/blob/main/web/src/pages/HomePage/HomePage.tsx
Local Test
yarn rw dev
yarn rw serve
(after building)The text was updated successfully, but these errors were encountered: