René's URL Explorer Experiment


Title: feat(build): Add NeonDB branch resolution for Vercel preview environments by 0ski · Pull Request #2729 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(build): Add NeonDB branch resolution for Vercel preview environments by 0ski · Pull Request #2729 · triggerdotdev/trigger.dev

X Title: feat(build): Add NeonDB branch resolution for Vercel preview environments by 0ski · Pull Request #2729 · triggerdotdev/trigger.dev

Description: Vercel's NeonDB integration renders database connection environment variables at runtime, which means Trigger.dev cannot directly sync these values during the build process. This change adds support for fetching branch-specific NeonDB connection strings via the Neon API. feat(build): Add syncNeonEnvVars extension and improve Vercel env var syncing Add a new syncNeonEnvVars build extension for syncing environment variables from Neon database projects to Trigger.dev. The extension automatically detects branches and builds appropriate PostgreSQL connection strings for non-production environments (staging, dev, preview). Features of syncNeonEnvVars: Fetches branch-specific database credentials from Neon API Generates all standard Postgres connection strings (DATABASE_URL, POSTGRES_URL, POSTGRES_PRISMA_URL, etc.) with both pooled and unpooled variants Supports custom database name, role name, and env var prefix options Skips automatically in Vercel environments (Neon's Vercel integration handles this) Skips for production environments (designed for preview/staging/dev branches) Improvements to syncVercelEnvVars: When running in a Vercel build environment (detected via VERCEL env var), values are now read from process.env instead of the Vercel API response This ensures the build uses the actual runtime values Vercel provides Removed embedded Neon-specific logic (now handled by separate extension) Simplified and cleaned up the extension code Documentation updates for both extensions with usage examples and configuration options. Closes #2714 ✅ Checklist I have followed every step in the contributing guide The PR title follows the convention. I ran and tested the code works Testing Set up Vercel + Trigger.dev envs, used Vercel's chat-bot-ai template.

Open Graph Description: Vercel's NeonDB integration renders database connection environment variables at runtime, which means Trigger.dev cannot directly sync these values during the build process. This change adds su...

X Description: Vercel's NeonDB integration renders database connection environment variables at runtime, which means Trigger.dev cannot directly sync these values during the build process. This change add...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/2729

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a57ee527-47ee-bf1b-0011-5b3f6261a0f9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB87C:18FE1B:3250A9:4AFC0E:6AFAE112
html-safe-nonced91ce0d4f6b308ba5de067f4ffd1a87c6bf66e46b827b113332665b0352abf2d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODdDOjE4RkUxQjozMjUwQTk6NEFGQzBFOjZBRkFFMTEyIiwidmlzaXRvcl9pZCI6IjEwNTExMDQ0NTc2MzE5MTYzMDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2b46b34738e036b33a402af402a1a58f21aa7676c5fec801b499335371f8479e
hovercard-subject-tagpull_request:3064882177
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/2729/files
twitter:imagehttps://avatars.githubusercontent.com/u/1408674?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1408674?s=400&v=4
og:image:altVercel's NeonDB integration renders database connection environment variables at runtime, which means Trigger.dev cannot directly sync these values during the build process. This change adds su...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/2729/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F2729%2Ffiles
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%2Fpull%2F2729%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/2729/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/2729/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/2729/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
0skihttps://github.com/0ski
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
oo/gh-issue-2714https://github.com/triggerdotdev/trigger.dev/tree/oo/gh-issue-2714
Conversation 31 https://github.com/triggerdotdev/trigger.dev/pull/2729
Commits 6 https://github.com/triggerdotdev/trigger.dev/pull/2729/commits
Checks 31 https://github.com/triggerdotdev/trigger.dev/pull/2729/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/2729/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/2729/files
feat(build): Add NeonDB branch resolution for Vercel preview environments https://github.com/triggerdotdev/trigger.dev/pull/2729/files#top
Show all changes 6 commits https://github.com/triggerdotdev/trigger.dev/pull/2729/files
49b2f68 feat(build): Add NeonDB branch resolution for Vercel preview environm… 0ski Dec 2, 2025 https://github.com/triggerdotdev/trigger.dev/pull/2729/commits/49b2f683f4431058866763803892fa7143bba12c
53f21e1 feat(build): Add syncNeonEnvVars extension and improve Vercel env var… 0ski Dec 3, 2025 https://github.com/triggerdotdev/trigger.dev/pull/2729/commits/53f21e1330482a5813debdf47989a75040f4c72e
7cbf82a fix: PR feedback, doc improvements for neon/vercel syncEnvVars 0ski Dec 4, 2025 https://github.com/triggerdotdev/trigger.dev/pull/2729/commits/7cbf82a4ae3f6f7ca7ca7b4642399a941773fdd0
357aa99 Add changeset 0ski Dec 4, 2025 https://github.com/triggerdotdev/trigger.dev/pull/2729/commits/357aa99309ec0721396e6537bb8315921756c159
8fcd930 chore: insert missing spaces in changeset nicktrn Dec 4, 2025 https://github.com/triggerdotdev/trigger.dev/pull/2729/commits/8fcd93001d4e31be4d55f7f9d06ed9db7befb3bc
702f3b4 chore: Improve changeset message 0ski Dec 4, 2025 https://github.com/triggerdotdev/trigger.dev/pull/2729/commits/702f3b4bcadb15446eb0253f2aa7ca8d460b4d66
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/2729/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/2729/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/2729/files
funny-planes-remember.md https://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-16e9ef349e8b3a4bee096b484fe88f50dab69a8803ba58c05c6437d289b97212
syncEnvVars.mdx https://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-1a1ef059420c4d0442eee03a9623a089925ca64bc21228b2ab27332dc6ec8dcf
vercel-sync-env-vars.mdx https://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-c611a5343c42d39f300991dc780690d3a0a5716b03946b28fbb89b23f68f2ab4
core.ts https://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-040c7882c49e996ca59cfdec26d21ef3c126b2c454c98029586de4d6c8979f9b
neonSyncEnvVars.ts https://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-e57cb21f7236ae82f0555020505380cd07681b586b6bdd50ed1f941fa4b8cbc9
vercelSyncEnvVars.ts https://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-e7834643ce93be59036c53d90408a128d048e1a28fe2bb33c41987f8e90230db
.changeset/funny-planes-remember.mdhttps://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-16e9ef349e8b3a4bee096b484fe88f50dab69a8803ba58c05c6437d289b97212
View file https://github.com/triggerdotdev/trigger.dev/blob/702f3b4bcadb15446eb0253f2aa7ca8d460b4d66/.changeset/funny-planes-remember.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/2729/{{ revealButtonHref }}
docs/config/extensions/syncEnvVars.mdxhttps://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-1a1ef059420c4d0442eee03a9623a089925ca64bc21228b2ab27332dc6ec8dcf
View file https://github.com/triggerdotdev/trigger.dev/blob/702f3b4bcadb15446eb0253f2aa7ca8d460b4d66/docs/config/extensions/syncEnvVars.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/2729/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-1a1ef059420c4d0442eee03a9623a089925ca64bc21228b2ab27332dc6ec8dcf
https://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-1a1ef059420c4d0442eee03a9623a089925ca64bc21228b2ab27332dc6ec8dcf
https://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-1a1ef059420c4d0442eee03a9623a089925ca64bc21228b2ab27332dc6ec8dcf
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/2729/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/2729/files
docs/guides/examples/vercel-sync-env-vars.mdxhttps://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-c611a5343c42d39f300991dc780690d3a0a5716b03946b28fbb89b23f68f2ab4
View file https://github.com/triggerdotdev/trigger.dev/blob/702f3b4bcadb15446eb0253f2aa7ca8d460b4d66/docs/guides/examples/vercel-sync-env-vars.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/2729/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-c611a5343c42d39f300991dc780690d3a0a5716b03946b28fbb89b23f68f2ab4
https://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-c611a5343c42d39f300991dc780690d3a0a5716b03946b28fbb89b23f68f2ab4
packages/build/src/extensions/core.tshttps://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-040c7882c49e996ca59cfdec26d21ef3c126b2c454c98029586de4d6c8979f9b
View file https://github.com/triggerdotdev/trigger.dev/blob/702f3b4bcadb15446eb0253f2aa7ca8d460b4d66/packages/build/src/extensions/core.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/2729/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/2729/files#diff-040c7882c49e996ca59cfdec26d21ef3c126b2c454c98029586de4d6c8979f9b
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/2729/files
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.