René's URL Explorer Experiment


Title: feat(webapp): org-gated internal API origin in run env vars by myftija · Pull Request #4366 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(webapp): org-gated internal API origin in run env vars by myftija · Pull Request #4366 · triggerdotdev/trigger.dev

X Title: feat(webapp): org-gated internal API origin in run env vars by myftija · Pull Request #4366 · triggerdotdev/trigger.dev

Description: Adds an opt-in way for operators to route deployed runs' API traffic through a different origin than the public one, per organization. Set INTERNAL_API_ORIGIN on the webapp and enable the internalApiOriginEnabled feature flag (globally or per org, with the org override winning in both directions): deployed runs for enabled orgs then get TRIGGER_API_URL set to the internal origin instead of API_ORIGIN. Useful for gradually moving run traffic onto a private network path. Design The origin is resolved when an attempt starts, so flag changes take effect on the next attempt and roll back the same way, with no task redeploys. The org override is read fresh per attempt; the global default comes from the cached flags registry (a cold read fails safe to the public origin). When INTERNAL_API_ORIGIN is unset the flag is a no-op and no extra queries run, so existing deployments are unaffected. Dev runs always use the public origin, and TRIGGER_STREAM_URL remains unchanged.

Open Graph Description: Adds an opt-in way for operators to route deployed runs' API traffic through a different origin than the public one, per organization. Set INTERNAL_API_ORIGIN on the webapp and enable the inter...

X Description: Adds an opt-in way for operators to route deployed runs' API traffic through a different origin than the public one, per organization. Set INTERNAL_API_ORIGIN on the webapp and enable the i...

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

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:95ff7b89-a400-b536-4150-1d506fbc6a6a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC5B4:345828:34D9BE6:4B84781:6AFB0849
html-safe-noncef3367144d1e11600bb29e1c49e7041bb12d813bd05bcb0f0d7ff908d7e14eed1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUI0OjM0NTgyODozNEQ5QkU2OjRCODQ3ODE6NkFGQjA4NDkiLCJ2aXNpdG9yX2lkIjoiNDc1ODg0NjQ5NDcyOTc2Njk4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd5cd9591828a2fe175f0629a2e492c9215c311ee19a91745b3455a9f6bba7ed3
hovercard-subject-tagpull_request:4125556659
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/4366/files
twitter:imagehttps://avatars.githubusercontent.com/u/19681398?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19681398?s=400&v=4
og:image:altAdds an opt-in way for operators to route deployed runs' API traffic through a different origin than the public one, per organization. Set INTERNAL_API_ORIGIN on the webapp and enable the inter...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None76fb13cb43f1834708971f45a9cfcab5df3177a7582086613d7cdc6e98c4bfde
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
releaseafc998826cdd963c8f91a96ae5372809ab5e296b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4366/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4366%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%2F4366%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/4366/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4366/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4366/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 requests67 (67)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
myftijahttps://github.com/myftija
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
feature/internal-api-origin-org-flaghttps://github.com/triggerdotdev/trigger.dev/tree/feature/internal-api-origin-org-flag
Conversation 16 https://github.com/triggerdotdev/trigger.dev/pull/4366
Commits 6 https://github.com/triggerdotdev/trigger.dev/pull/4366/commits
Checks 46 https://github.com/triggerdotdev/trigger.dev/pull/4366/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4366/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4366/files
feat(webapp): org-gated internal API origin in run env vars https://github.com/triggerdotdev/trigger.dev/pull/4366/files#top
Show all changes 6 commits https://github.com/triggerdotdev/trigger.dev/pull/4366/files
755eb40 feat(webapp): org-gated internal API origin for deployed runs myftija Jul 23, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4366/commits/755eb409683d798a118592eeb90a35587e164212
ecc1052 refactor(webapp): extract pure org-flag resolution for the internal A… myftija Jul 23, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4366/commits/ecc10520dbc68a13ab8dd5defb7f179f663f0d6c
beaf9b7 perf(webapp): resolve the internal-api-origin global default from the… myftija Jul 23, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4366/commits/beaf9b72574f5ff6b909f76862ae25b80f7ef860
b97446d fix(webapp): read org flags from the replica and document global-flag… myftija Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4366/commits/b97446ddb95b2826e5948b9d47629c03f7e256b6
d90a794 feat(webapp): resolve the internal-api-origin org flag from in-memory… myftija Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4366/commits/d90a7946e8d16c46443c32f9511f1c61919525f1
4133bc0 feat(webapp): read internal-api-origin global default from the flags … myftija Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4366/commits/4133bc00aa196abed9c6c99f0a9bc5fe77d6518d
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4366/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4366/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4366/files
internal-api-origin-flag.md https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-8e34677fd9e4c4e8af279f937fc1d2c3a8a56cba16047ef676afc27b0791d83d
env.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
api.v1.projects.$projectRef.envvars.ts https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-c4d6dfaf57017a0a142678187c397ae6db74c8a006e6683a8a3c3c42995c0e7d
environmentVariablesRepository.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-0e75e6a254fef8d7800e2bb0cd563b6775c64e354c3848f2e7cda0c617a90f3f
featureFlags.ts https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-b786b6c59ba126a02d9e947c4d01e2df333ea295686f0eace3043c932eb20cb0
workerGroupTokenService.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-007389ccd4da20f9e716312f9ea525ac70fa063968b1c3c13006bf1b92c124e8
internalApiOrigin.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-149016e34baa560e626e4da5296cb443212dc6b1ff2ebc2002eabb993c33208e
.server-changes/internal-api-origin-flag.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-8e34677fd9e4c4e8af279f937fc1d2c3a8a56cba16047ef676afc27b0791d83d
View file https://github.com/triggerdotdev/trigger.dev/blob/4133bc00aa196abed9c6c99f0a9bc5fe77d6518d/.server-changes/internal-api-origin-flag.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4366/{{ revealButtonHref }}
apps/webapp/app/env.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
View file https://github.com/triggerdotdev/trigger.dev/blob/4133bc00aa196abed9c6c99f0a9bc5fe77d6518d/apps/webapp/app/env.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4366/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-f8823615ef72da3494e74de9e62b2fa31315ed9360f17bc06ab943f4dc25f4fd
apps/webapp/app/routes/api.v1.projects.$projectRef.envvars.tshttps://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-c4d6dfaf57017a0a142678187c397ae6db74c8a006e6683a8a3c3c42995c0e7d
View file https://github.com/triggerdotdev/trigger.dev/blob/4133bc00aa196abed9c6c99f0a9bc5fe77d6518d/apps/webapp/app/routes/api.v1.projects.%24projectRef.envvars.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4366/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-c4d6dfaf57017a0a142678187c397ae6db74c8a006e6683a8a3c3c42995c0e7d
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-c4d6dfaf57017a0a142678187c397ae6db74c8a006e6683a8a3c3c42995c0e7d
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-c4d6dfaf57017a0a142678187c397ae6db74c8a006e6683a8a3c3c42995c0e7d
apps/webapp/app/v3/environmentVariables/environmentVariablesRepository.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-0e75e6a254fef8d7800e2bb0cd563b6775c64e354c3848f2e7cda0c617a90f3f
View file https://github.com/triggerdotdev/trigger.dev/blob/4133bc00aa196abed9c6c99f0a9bc5fe77d6518d/apps/webapp/app/v3/environmentVariables/environmentVariablesRepository.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4366/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-0e75e6a254fef8d7800e2bb0cd563b6775c64e354c3848f2e7cda0c617a90f3f
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-0e75e6a254fef8d7800e2bb0cd563b6775c64e354c3848f2e7cda0c617a90f3f
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-0e75e6a254fef8d7800e2bb0cd563b6775c64e354c3848f2e7cda0c617a90f3f
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-0e75e6a254fef8d7800e2bb0cd563b6775c64e354c3848f2e7cda0c617a90f3f
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-0e75e6a254fef8d7800e2bb0cd563b6775c64e354c3848f2e7cda0c617a90f3f
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4366/files
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-0e75e6a254fef8d7800e2bb0cd563b6775c64e354c3848f2e7cda0c617a90f3f
apps/webapp/app/v3/featureFlags.tshttps://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-b786b6c59ba126a02d9e947c4d01e2df333ea295686f0eace3043c932eb20cb0
View file https://github.com/triggerdotdev/trigger.dev/blob/4133bc00aa196abed9c6c99f0a9bc5fe77d6518d/apps/webapp/app/v3/featureFlags.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4366/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-b786b6c59ba126a02d9e947c4d01e2df333ea295686f0eace3043c932eb20cb0
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-b786b6c59ba126a02d9e947c4d01e2df333ea295686f0eace3043c932eb20cb0
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4366/files
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-b786b6c59ba126a02d9e947c4d01e2df333ea295686f0eace3043c932eb20cb0
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-b786b6c59ba126a02d9e947c4d01e2df333ea295686f0eace3043c932eb20cb0
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-b786b6c59ba126a02d9e947c4d01e2df333ea295686f0eace3043c932eb20cb0
apps/webapp/app/v3/services/worker/workerGroupTokenService.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-007389ccd4da20f9e716312f9ea525ac70fa063968b1c3c13006bf1b92c124e8
View file https://github.com/triggerdotdev/trigger.dev/blob/4133bc00aa196abed9c6c99f0a9bc5fe77d6518d/apps/webapp/app/v3/services/worker/workerGroupTokenService.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4366/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-007389ccd4da20f9e716312f9ea525ac70fa063968b1c3c13006bf1b92c124e8
https://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-007389ccd4da20f9e716312f9ea525ac70fa063968b1c3c13006bf1b92c124e8
apps/webapp/test/internalApiOrigin.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/4366/files#diff-149016e34baa560e626e4da5296cb443212dc6b1ff2ebc2002eabb993c33208e
View file https://github.com/triggerdotdev/trigger.dev/blob/4133bc00aa196abed9c6c99f0a9bc5fe77d6518d/apps/webapp/test/internalApiOrigin.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4366/{{ revealButtonHref }}
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4366/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.