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

Replace throw on missing env with warning #1311

Merged
merged 6 commits into from
Oct 9, 2024

Conversation

CahidArda
Copy link
Contributor

Previously, we threw when the env variables were missing. This is usually fine, but in turbo we had to add the Upstash Redis env variables to turbo.json (under build.env).

This is not ideal. Instead, we now check at runtime when the request is being sent. If the credentials are missing, we throw.

Copy link

linear bot commented Oct 8, 2024

@CahidArda CahidArda force-pushed the DX-1333-rm-throws-on-missing-env branch from 4929d55 to 6ab0fb8 Compare October 8, 2024 12:08
@CahidArda
Copy link
Contributor Author

doesn't work as expected with Turbo & Vercel. More info available at Linear.

because of vercel pre-rendering, the error was thrown when turbo was used
@CahidArda
Copy link
Contributor Author

Turbo repo was deployed when I replaced throws with warnings altogether

ytkimirti
ytkimirti previously approved these changes Oct 9, 2024
@CahidArda CahidArda merged commit 29c9021 into main Oct 9, 2024
14 checks passed
@CahidArda CahidArda deleted the DX-1333-rm-throws-on-missing-env branch October 9, 2024 15:12
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