René's URL Explorer Experiment


Title: bug: syncVercelEnvVars syncs production env var for preview deployment when using NeonDB vercel integration · Issue #2714 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: bug: syncVercelEnvVars syncs production env var for preview deployment when using NeonDB vercel integration · Issue #2714 · triggerdotdev/trigger.dev

X Title: bug: syncVercelEnvVars syncs production env var for preview deployment when using NeonDB vercel integration · Issue #2714 · triggerdotdev/trigger.dev

Description: Provide environment information (Version is 4.1.2, but likely does not matter much) Describe the bug When using the Vercel NeonDB integration, each preview environments gets individual env vars set just before a build starts on Vercel. T...

Open Graph Description: Provide environment information (Version is 4.1.2, but likely does not matter much) Describe the bug When using the Vercel NeonDB integration, each preview environments gets individual env vars set...

X Description: Provide environment information (Version is 4.1.2, but likely does not matter much) Describe the bug When using the Vercel NeonDB integration, each preview environments gets individual env vars set...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/2714

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: syncVercelEnvVars syncs production env var for preview deployment when using NeonDB vercel integration","articleBody":"### Provide environment information\n\n(Version is 4.1.2, but likely does not matter much)\n\n### Describe the bug\n\nWhen using the Vercel NeonDB integration, each preview environments gets individual env vars set just before a build starts on Vercel. Those \"per preview environment\" env vars are **not returned by the Vercel REST API** at `https://api.vercel.com/v8/projects/${projectId}/env?${params}`.\n\nThe problem is that syncVercelEnvVars uses the above URL to get both, env var names and their values. The synced env vars do not have the values Vercel uses during the build! Env var are not actually in sync.\n\nTo make matters worse, the Vercel NeonDB integration, automatically makes the production db env var available through the above REST API _for the staging environment_! This caused our trigger.dev staging environment to write to our prod db :( (In the Vercel UI this env var is \"managed\" by the Neon DB integration and cannot even be manually fixed.)\n\nMy suggestion is to \"fix\" this problem by modifying syncVercelEnvVars to only get the names of the env vars from the REST API but then _reading the values from the actual build environment_. Just like \"syncEnvVars\" does it.\n\n(For what it's worth, follow-ups could also include:\n1. To file a feature request with Vercel to ask for a way to get the \"per preview environment\" env vars.\n2. To ask NeonDB to not set the prod url for staging [tbh wtf])\n\nAs a workaround, we switched to using \"syncEnvVars\" for the Neon related env vars.\n\n### Reproduction repo\n\nSorry, I hope the steps are detailed enough\n\n### To reproduce\n\n- Make a Vercel project\n- Use the Neon db Vercel integration\n- Build/deploy a Vercel preview environment that also deploys to trigger.dev staging env and uses syncVercelEnvVars\n- Observe that the trigger dev tasks in staging are using the production database\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/felix-quotez","@type":"Person","name":"felix-quotez"},"datePublished":"2025-11-28T12:07:45Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/2714"}

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:974814bd-508b-390e-f36c-d4e315888896
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDB82:1E24B0:37E2E2:53720F:6AFAE241
html-safe-nonce074bfccadd4db76d924e4ccdb039c6a4d09038cb0a2a3a62d5a73647b3d4f6ba
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjgyOjFFMjRCMDozN0UyRTI6NTM3MjBGOjZBRkFFMjQxIiwidmlzaXRvcl9pZCI6IjMxMTYxNTU4NTQ4ODE3NDM0MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4c85bc4e5e8dde53eaf6d30b8b812bc097da4717720284ecc576acc2da475967
hovercard-subject-tagissue:3674688446
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/2714/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5a7ebb6bf3e53bf90ffb5f38ecd4aedeb765685aaa6614631f492312d47f81dc/triggerdotdev/trigger.dev/issues/2714
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5a7ebb6bf3e53bf90ffb5f38ecd4aedeb765685aaa6614631f492312d47f81dc/triggerdotdev/trigger.dev/issues/2714
og:image:altProvide environment information (Version is 4.1.2, but likely does not matter much) Describe the bug When using the Vercel NeonDB integration, each preview environments gets individual env vars set...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefelix-quotez
hostnamegithub.com
expected-hostnamegithub.com
None9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2
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
release4a7ae932999cc6d511008dbf980ff9efad2a31f7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/2714#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F2714
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%2F2714
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/2714
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/2714
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/2714
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/2714
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/2714
#2729https://github.com/triggerdotdev/trigger.dev/pull/2729
bug: syncVercelEnvVars syncs production env var for preview deployment when using NeonDB vercel integrationhttps://github.com/triggerdotdev/trigger.dev/issues/2714#top
#2729https://github.com/triggerdotdev/trigger.dev/pull/2729
https://github.com/felix-quotez
felix-quotezhttps://github.com/felix-quotez
on Nov 28, 2025https://github.com/triggerdotdev/trigger.dev/issues/2714#issue-3674688446
0skihttps://github.com/0ski
completedhttps://github.com/triggerdotdev/trigger.dev/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#2729https://github.com/triggerdotdev/trigger.dev/pull/2729
on Dec 4, 2025https://github.com/triggerdotdev/trigger.dev/issues/2714#event-21362730879
Thegreatsurahttps://github.com/Thegreatsura
on Dec 4, 2025https://github.com/triggerdotdev/trigger.dev/issues/2714#event-21362811377
feat(build): Add NeonDB branch resolution for Vercel preview environm…https://github.com/Thegreatsura/trigger.dev/commit/05b53967ea009e5fb73e1bc03eeecf17d1720f3c
https://docs.github.com/articles/closing-issues-via-commit-messages
05b5396https://github.com/Thegreatsura/trigger.dev/commit/05b53967ea009e5fb73e1bc03eeecf17d1720f3c
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/2714
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/2714
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.