René's URL Explorer Experiment


Title: perf(webapp): bound environment loads in the env layout and batches list by ericallam · Pull Request #4606 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: perf(webapp): bound environment loads in the env layout and batches list by ericallam · Pull Request #4606 · triggerdotdev/trigger.dev

X Title: perf(webapp): bound environment loads in the env layout and batches list by ericallam · Pull Request #4606 · triggerdotdev/trigger.dev

Description: Summary Follow-up to #4595. Dashboard pages under an environment loaded every environment in the project on each page just to resolve the one named in the URL. On projects with many preview branches that meant reading hundreds of (mostly archived) rows on every page load. Fix The environment-scoped layout loader now scopes its lookup to the slug in the URL (where: { slug: envParam }), resolving the current environment through the projectId, slug composite index instead of loading the whole project. Archived branches stay viewable by slug. BatchListPresenter is bounded to the current environment, since every batch in that list already belongs to it. Verified on a project seeded with 2,000 archived branch environments: the layout lookup drops from all environments to one, and both a normal environment page and an archived branch page render correctly.

Open Graph Description: Summary Follow-up to #4595. Dashboard pages under an environment loaded every environment in the project on each page just to resolve the one named in the URL. On projects with many preview branche...

X Description: Summary Follow-up to #4595. Dashboard pages under an environment loaded every environment in the project on each page just to resolve the one named in the URL. On projects with many preview branche...

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

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:60f01267-c1a5-7cf6-2e00-ad452749f319
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9FC0:2FFF08:61356A3:8233054:6AFAEB8C
html-safe-nonce2edf2a56a45ccbccfa446e11b4c30e4883eeb316f67ea159364f98b4d2e1a3f1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkMwOjJGRkYwODo2MTM1NkEzOjgyMzMwNTQ6NkFGQUVCOEMiLCJ2aXNpdG9yX2lkIjoiMjk3ODA2MzI2NzUxNjgzNjc0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8f18ad418429e861c28d4e76f6867ac485a97865f22c1be672561be58c491382
hovercard-subject-tagpull_request:4272212263
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/4606/files
twitter:imagehttps://avatars.githubusercontent.com/u/534?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/534?s=400&v=4
og:image:altSummary Follow-up to #4595. Dashboard pages under an environment loaded every environment in the project on each page just to resolve the one named in the URL. On projects with many preview branche...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0178036d8230524a18422872393ab7e708443ae4c2047f758560a2db870c1913
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
release12fff95459b24b0f882a66698ee6a36a5934d247
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4606/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4606%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%2F4606%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/4606/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4606/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4606/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
ericallamhttps://github.com/ericallam
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
feature/tri-13184-bound-env-layout-lookupshttps://github.com/triggerdotdev/trigger.dev/tree/feature/tri-13184-bound-env-layout-lookups
Conversation 2 https://github.com/triggerdotdev/trigger.dev/pull/4606
Commits 2 https://github.com/triggerdotdev/trigger.dev/pull/4606/commits
Checks 48 https://github.com/triggerdotdev/trigger.dev/pull/4606/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4606/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4606/files
perf(webapp): bound environment loads in the env layout and batches list https://github.com/triggerdotdev/trigger.dev/pull/4606/files#top
Show all changes 2 commits https://github.com/triggerdotdev/trigger.dev/pull/4606/files
c0fa3fe perf(webapp): bound environment loads in the env layout and batches list ericallam Aug 13, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4606/commits/c0fa3fea0d59ad0b167c713e9a52118d8450ab74
225a993 docs: server-changes note for bounded env layout load ericallam Aug 13, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4606/commits/225a99306b229bba2750e4bfc43a6b678e7305b0
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4606/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4606/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4606/files
bound-env-layout-environment-load.md https://github.com/triggerdotdev/trigger.dev/pull/4606/files#diff-93697563ee101ec6d26bbf41810a99702506704f51e79993b5ce17854b7c0412
BatchListPresenter.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4606/files#diff-8ba02f9903ad5b82dfb38f71cfbec70e02dcff63ea3826f166874eefc2492921
route.tsx https://github.com/triggerdotdev/trigger.dev/pull/4606/files#diff-808d761e31211aaf54f08a943d5d09f52a145f6bc63ea1fb8ce5d05fab520436
.server-changes/bound-env-layout-environment-load.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4606/files#diff-93697563ee101ec6d26bbf41810a99702506704f51e79993b5ce17854b7c0412
View file https://github.com/triggerdotdev/trigger.dev/blob/225a99306b229bba2750e4bfc43a6b678e7305b0/.server-changes/bound-env-layout-environment-load.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4606/{{ revealButtonHref }}
apps/webapp/app/presenters/v3/BatchListPresenter.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4606/files#diff-8ba02f9903ad5b82dfb38f71cfbec70e02dcff63ea3826f166874eefc2492921
View file https://github.com/triggerdotdev/trigger.dev/blob/225a99306b229bba2750e4bfc43a6b678e7305b0/apps/webapp/app/presenters/v3/BatchListPresenter.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4606/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4606/files#diff-8ba02f9903ad5b82dfb38f71cfbec70e02dcff63ea3826f166874eefc2492921
https://github.com/triggerdotdev/trigger.dev/pull/4606/files#diff-8ba02f9903ad5b82dfb38f71cfbec70e02dcff63ea3826f166874eefc2492921
...app/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam/route.tsxhttps://github.com/triggerdotdev/trigger.dev/pull/4606/files#diff-808d761e31211aaf54f08a943d5d09f52a145f6bc63ea1fb8ce5d05fab520436
View file https://github.com/triggerdotdev/trigger.dev/blob/225a99306b229bba2750e4bfc43a6b678e7305b0/apps/webapp/app/routes/_app.orgs.%24organizationSlug.projects.%24projectParam.env.%24envParam/route.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4606/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4606/files#diff-808d761e31211aaf54f08a943d5d09f52a145f6bc63ea1fb8ce5d05fab520436
https://github.com/triggerdotdev/trigger.dev/pull/4606/files#diff-808d761e31211aaf54f08a943d5d09f52a145f6bc63ea1fb8ce5d05fab520436
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4606/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.