Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

@linear
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
@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

Development

Successfully merging this pull request may close these issues.

3 participants