Title: bug: .env.local doesn't override .env values in dev command · Issue #2999 · triggerdotdev/trigger.dev · GitHub
Open Graph Title: bug: .env.local doesn't override .env values in dev command · Issue #2999 · triggerdotdev/trigger.dev
X Title: bug: .env.local doesn't override .env values in dev command · Issue #2999 · triggerdotdev/trigger.dev
Description: Provide environment information v4.3.2 Describe the bug When running trigger dev, .env.local should override values from .env, but it doesn't. The .env values are used instead Reproduction repo n/a To reproduce To reproduce: Create .env ...
Open Graph Description: Provide environment information v4.3.2 Describe the bug When running trigger dev, .env.local should override values from .env, but it doesn't. The .env values are used instead Reproduction repo n/a...
X Description: Provide environment information v4.3.2 Describe the bug When running trigger dev, .env.local should override values from .env, but it doesn't. The .env values are used instead Reproduction repo...
Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/2999
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: .env.local doesn't override .env values in dev command","articleBody":"### Provide environment information\n\nv4.3.2\n\n### Describe the bug\n\nWhen running trigger dev, .env.local should override values from .env, but it doesn't. The .env values are used instead\n\n\n### Reproduction repo\n\nn/a\n\n### To reproduce\n\nTo reproduce:\n\n1. Create .env with TEST_VAR=from-env\n2. Create .env.local with TEST_VAR=from-local\n3. Run npx trigger.dev dev\n4. In your task, check process.env.TEST_VAR\n5. It shows from-env instead of from-local\n\nExpected: `.env.local` should override `.env`, so TEST_VAR should be `from-local`.\n\n### Additional information\n\nThe issue is most probably in `packages/cli-v3/src/utilities/dotEnv.ts`. The code passes an array to `dotenv.config({ path: envFilePath })`, but `dotenv.config()` only accepts a string path, not an array. This means only the first file (`.env`) is loaded.\n\nPotential fix:\nLoop through each file in ENVVAR_FILES and call dotenv.config() for each one in order, so later files override earlier ones","author":{"url":"https://github.com/isshaddad","@type":"Person","name":"isshaddad"},"datePublished":"2026-02-04T17:16:35Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/2999"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a50d79e5-8dfb-75d1-05d2-a79c25f55ada |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACCA:3E915:2FEB965:43E4A2D:6AFAE517 |
| html-safe-nonce | 5aea2554d10205836929bcd54d9b42a91bfa4c5329746e26b202ab71698385a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0NBOjNFOTE1OjJGRUI5NjU6NDNFNEEyRDo2QUZBRTUxNyIsInZpc2l0b3JfaWQiOiIyOTY4MDczNTAwMDAzODUzNTkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6514ae2a42c45b91817cd2d87edde93f88e9a04e70139a76e2e3a4fd03d5c5ec |
| hovercard-subject-tag | issue:3897575189 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/2999/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ba6b453b0aba27c64234687d3f6a5c66e961621aaef948182d987242ea36582/triggerdotdev/trigger.dev/issues/2999 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ba6b453b0aba27c64234687d3f6a5c66e961621aaef948182d987242ea36582/triggerdotdev/trigger.dev/issues/2999 |
| og:image:alt | Provide environment information v4.3.2 Describe the bug When running trigger dev, .env.local should override values from .env, but it doesn't. The .env values are used instead Reproduction repo n/a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | isshaddad |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0178036d8230524a18422872393ab7e708443ae4c2047f758560a2db870c1913 |
| turbo-cache-control | no-preview |
| go-import | github.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git |
| octolytics-dimension-user_id | 95297378 |
| octolytics-dimension-user_login | triggerdotdev |
| octolytics-dimension-repository_id | 572570113 |
| octolytics-dimension-repository_nwo | triggerdotdev/trigger.dev |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 572570113 |
| octolytics-dimension-repository_network_root_nwo | triggerdotdev/trigger.dev |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 12fff95459b24b0f882a66698ee6a36a5934d247 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width