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

Use JS config files instead of environment variables #408

Merged
merged 5 commits into from
Jan 22, 2024
Merged

Conversation

eyeseast
Copy link
Collaborator

Closes #370

We have a lot (67 or so) of environment variables that are checked into git. Of those, only five actually change between environments. This turns all those values into javascript constants, with a little code to handle different environments.

This touches a lot of files, because we reference these values all over the place. Hopefully this makes it easier to track what's being used where and what stuff should look like, because there's less happening at runtime.

Copy link

netlify bot commented Jan 18, 2024

Deploy Preview for documentcloud-frontend ready!

Name Link
🔨 Latest commit f817cef
🔍 Latest deploy log https://app.netlify.com/sites/documentcloud-frontend/deploys/65aa8d51801b300008b8e1e2
😎 Deploy Preview https://deploy-preview-408.muckcloud.com/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@eyeseast eyeseast merged commit d225575 into master Jan 22, 2024
11 checks passed
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

Successfully merging this pull request may close these issues.

Convert .env to config files
2 participants