Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(env): add VERCEL_ENV into default global env map (vercel#9635)
### Description Include `VERCEL_ENV` as an environment variable that affects the global hash. Can be opted out by specifying `!VERCEL_ENV` in `globalEnv`. ### Testing Instructions Unit test, quick manual test as a smoke test: ``` [0 olszewski@chriss-mbp] /tmp/env-var $ VERCEL_ENV=dev turbo_dev --skip-infer build --output-logs=hash-only --ui=stream turbo 2.3.4-canary.4 • Packages in scope: @repo/eslint-config, @repo/typescript-config, @repo/ui, docs, web • Running build in 5 packages • Remote caching disabled web:build: cache miss, executing 7a2bad92132801df docs:build: cache miss, executing 744d362ee9e1eb1b Tasks: 2 successful, 2 total Cached: 0 cached, 2 total Time: 13.166s [0 olszewski@chriss-mbp] /tmp/env-var $ VERCEL_ENV=dev turbo_dev --skip-infer build --output-logs=hash-only --ui=stream turbo 2.3.4-canary.4 • Packages in scope: @repo/eslint-config, @repo/typescript-config, @repo/ui, docs, web • Running build in 5 packages • Remote caching disabled docs:build: cache hit, suppressing logs 744d362ee9e1eb1b web:build: cache hit, suppressing logs 7a2bad92132801df Tasks: 2 successful, 2 total Cached: 2 cached, 2 total Time: 108ms >>> FULL TURBO [0 olszewski@chriss-mbp] /tmp/env-var $ VERCEL_ENV=prod turbo_dev --skip-infer build --output-logs=hash-only --ui=stream turbo 2.3.4-canary.4 • Packages in scope: @repo/eslint-config, @repo/typescript-config, @repo/ui, docs, web • Running build in 5 packages • Remote caching disabled web:build: cache miss, executing b138cc0b45044f36 docs:build: cache miss, executing 0149788cd6331b71 Tasks: 2 successful, 2 total Cached: 0 cached, 2 total Time: 9.355s ```
- Loading branch information