René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a50d79e5-8dfb-75d1-05d2-a79c25f55ada
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idACCA:3E915:2FEB965:43E4A2D:6AFAE517
html-safe-nonce5aea2554d10205836929bcd54d9b42a91bfa4c5329746e26b202ab71698385a6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0NBOjNFOTE1OjJGRUI5NjU6NDNFNEEyRDo2QUZBRTUxNyIsInZpc2l0b3JfaWQiOiIyOTY4MDczNTAwMDAzODUzNTkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6514ae2a42c45b91817cd2d87edde93f88e9a04e70139a76e2e3a4fd03d5c5ec
hovercard-subject-tagissue:3897575189
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/2999/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4ba6b453b0aba27c64234687d3f6a5c66e961621aaef948182d987242ea36582/triggerdotdev/trigger.dev/issues/2999
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4ba6b453b0aba27c64234687d3f6a5c66e961621aaef948182d987242ea36582/triggerdotdev/trigger.dev/issues/2999
og:image:altProvide 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameisshaddad
hostnamegithub.com
expected-hostnamegithub.com
None0178036d8230524a18422872393ab7e708443ae4c2047f758560a2db870c1913
turbo-cache-controlno-preview
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release12fff95459b24b0f882a66698ee6a36a5934d247
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/2999#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F2999
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F2999
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/2999
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/2999
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/2999
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests66 (66)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
https://github.com/triggerdotdev/trigger.dev
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/2999
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/2999
bug: .env.local doesn't override .env values in dev commandhttps://github.com/triggerdotdev/trigger.dev/issues/2999#top
https://github.com/isshaddad
isshaddadhttps://github.com/isshaddad
on Feb 4, 2026https://github.com/triggerdotdev/trigger.dev/issues/2999#issue-3897575189
deepshekhardashttps://github.com/deepshekhardas
on Feb 10, 2026https://github.com/triggerdotdev/trigger.dev/issues/2999#event-22672106979
fix: ensure .env.local takes precedence over defaults (triggerdotdev#…https://github.com/deepshekhardas/trigger.dev/commit/f0af7359a38b4963f11a16780907486dc86b8b8e
triggerdotdev#…https://github.com/triggerdotdev/trigger.dev/issues/2999
f0af735https://github.com/deepshekhardas/trigger.dev/commit/f0af7359a38b4963f11a16780907486dc86b8b8e
fix: ensure .env.local takes precedence over defaults (triggerdotdev#…https://github.com/deepshekhardas/trigger.dev/commit/4cd12f6b36501b1190087207099ed7cd12a76b53
triggerdotdev#…https://github.com/triggerdotdev/trigger.dev/issues/2999
4cd12f6https://github.com/deepshekhardas/trigger.dev/commit/4cd12f6b36501b1190087207099ed7cd12a76b53
https://github.com/KanhaiyaPandey
KanhaiyaPandeyhttps://github.com/KanhaiyaPandey
on Feb 23, 2026https://github.com/triggerdotdev/trigger.dev/issues/2999#issuecomment-3943489630
deepshekhardashttps://github.com/deepshekhardas
on Mar 2, 2026https://github.com/triggerdotdev/trigger.dev/issues/2999#event-23183004953
fix(cli): ensure .env.local overrides .env values in dev commandhttps://github.com/deepshekhardas/trigger.dev/commit/ed1df224443dc6dc6b5b486bd1b49cd2b16c2c86
https://docs.github.com/articles/closing-issues-via-commit-messages
ed1df22https://github.com/deepshekhardas/trigger.dev/commit/ed1df224443dc6dc6b5b486bd1b49cd2b16c2c86
https://github.com/eatspaint
eatspainthttps://github.com/eatspaint
on Apr 17, 2026https://github.com/triggerdotdev/trigger.dev/issues/2999#issuecomment-4270092184
@isshaddadhttps://github.com/isshaddad
@deepshekhardashttps://github.com/deepshekhardas
#3157https://github.com/triggerdotdev/trigger.dev/pull/3157
https://github.com/petrbela
petrbelahttps://github.com/petrbela
on Jul 30, 2026https://github.com/triggerdotdev/trigger.dev/issues/2999#issuecomment-5129731006
#3157https://github.com/triggerdotdev/trigger.dev/pull/3157
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/2999
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/2999
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.