Closed xbtmatt closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
emojicoin-dot-fun | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 12, 2024 4:16am |
emojicoin-dot-fun-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 12, 2024 4:16am |
Description
The tests for the PR that changed
server-env.ts
toserver/env.ts
and addedimport "server-only";
at the top didn't actually pass, and now it's causing all tests to fail.To fix it we need to do one thing:
server-only
inserver/env.ts
, based on whether or not we're in a test environmentturbo.json
scripts to not have to run so many nested layers of execution, by "inlining" the env var loading instead of calling it functionallyturbo@2.1.0
we can now setenvMode
to beloose
inturbo.json
. This means all environment variables passed in are used. Prior to this (starting inturbo v2
), we'd have to declare which environment variables to use in theglobalEnv
array inturbo.json
. I've removed theglobalEnv
array, updated toloose
mode, and added a glob file for cache invalidation based on env vars (andtsconfig.json
files) in lieu of the explicit env varsTesting
Making sure the tests pass before merging
Checklist