fix(turbo): hash local env inputs #40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/turbo-env-inputs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Accounts for local
.env*files in cacheable Turbo task hashes for the Vite web build and Storybook build.Why
Turborepo does not load
.envfiles itself, but Vite/Storybook can. Without.env*in task inputs, local env file changes can leave cacheable build artifacts stale.Changes
inputs: ["$TURBO_DEFAULT$", ".env*"]tobuild.build-storybook.Testing
bun run --cwd apps/web test:unit src/lib/workspace-boundary.test.tsapps/web/.env.localshowed the web build hash changed and.env.localappeared in inputs.bun run test:qabun run db:checkgit diff --checkpodman build -f apps/web/Containerfile -t localhost/dimensionlab-website:codex-env-inputs ./and/api/dashboard.Notes
Follows the official Turborepo environment variable guidance for
.envfile hashing.