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

Production dotenv #88

Merged
merged 4 commits into from
Oct 29, 2024
Merged

Production dotenv #88

merged 4 commits into from
Oct 29, 2024

Conversation

okaycj
Copy link
Collaborator

@okaycj okaycj commented Oct 28, 2024

Summary

The production build didn't include environment variables. Where a value, such as DEBUG, could be "undefined," Rollupjs would leave it as "process.env.DEBUG." This throws an error in the browser. To fix this issue, we generated an environment file before the production build.

Additionally, I configured Rollupjs to look for the environment file in a central location at the root of the mono repo.

Copy link

changeset-bot bot commented Oct 28, 2024

🦋 Changeset detected

Latest commit: dfc36dd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@lookit/templates Patch
@lookit/record Patch
@lookit/data Patch
@lookit/lookit-initjspsych Patch
@lookit/surveys Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@becky-gilbert becky-gilbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. I'll move my env files into one root file once this is merged. Thank you!

@okaycj okaycj force-pushed the production-dotenv branch from 0b617b5 to 3be4baf Compare October 29, 2024 12:56
@okaycj okaycj merged commit 6c42a48 into main Oct 29, 2024
2 checks passed
@okaycj okaycj deleted the production-dotenv branch October 29, 2024 13:02
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.

2 participants