René's URL Explorer Experiment


Title: fix(sdk): resolve ReferenceError in envvars.update outside task context by ANSHSINGH050404 · Pull Request #4291 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: fix(sdk): resolve ReferenceError in envvars.update outside task context by ANSHSINGH050404 · Pull Request #4291 · triggerdotdev/trigger.dev

X Title: fix(sdk): resolve ReferenceError in envvars.update outside task context by ANSHSINGH050404 · Pull Request #4291 · triggerdotdev/trigger.dev

Description: Closes #4264 ✅ Checklist I have followed every step in the contributing guide The PR title follows the convention. I ran and tested the code works Summary envvars.update(projectRef, slug, name, params) crashed outside a task run with: ReferenceError: name is not defined In the non-task branch the third parameter is named nameOrRequestOptions, but the code assigned $name = name!. That identifier is not a parameter (and is only a browser global), so Node throws. create / del / retrieve / list were already fine on the same path. Fix Validate typeof nameOrRequestOptions === string (clear error if missing) Assign $name = nameOrRequestOptions Type-level overload coverage for in-task and out-of-task forms Patch changeset for @trigger.dev/sdk Testing pnpm run build --filter @trigger.dev/sdk pnpm --filter @trigger.dev/sdk exec vitest run src/v3/triggerClient.types.test.ts --run Build succeeded 11/11 type tests passed (including the new envvars.update overload cases) Compiled dist/commonjs/v3/envvars.js uses nameOrRequestOptions for $name Changelog Fix envvars.update() throwing ReferenceError: name is not defined when called outside a task run (for example from a deploy script). Note for maintainers Vouch request: #4290

Open Graph Description: Closes #4264 ✅ Checklist I have followed every step in the contributing guide The PR title follows the convention. I ran and tested the code works Summary envvars.update(projectRef, slug, nam...

X Description: Closes #4264 ✅ Checklist I have followed every step in the contributing guide The PR title follows the convention. I ran and tested the code works Summary envvars.update(projectRef, slug, nam...

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

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:696f2585-47c5-0f89-a3cf-69caddfb0462
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCAB2:2861CF:4A0C:60FC:6AFB08B6
html-safe-nonce699649bb6df9c258aea97d3cabfc26f192b453d58c04d1f089e12aa259102142
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUIyOjI4NjFDRjo0QTBDOjYwRkM6NkFGQjA4QjYiLCJ2aXNpdG9yX2lkIjoiMzM4MDc2MzgwNzgyNjI0OTkxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac62cf9a48b69115e8d59e3dac443c86e4b9ae1ef57814dd5c45ba9e10cd359526
hovercard-subject-tagpull_request:4088915072
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/4291/files
twitter:imagehttps://avatars.githubusercontent.com/u/114014895?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/114014895?s=400&v=4
og:image:altCloses #4264 ✅ Checklist I have followed every step in the contributing guide The PR title follows the convention. I ran and tested the code works Summary envvars.update(projectRef, slug, nam...
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/4291/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4291%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%2F4291%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/4291/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4291/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4291/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
ANSHSINGH050404https://github.com/ANSHSINGH050404
triggerdotdev:mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
ANSHSINGH050404:fix/envvars-update-out-of-task-contexthttps://github.com/ANSHSINGH050404/trigger.dev/tree/fix/envvars-update-out-of-task-context
Conversation 5 https://github.com/triggerdotdev/trigger.dev/pull/4291
Commits 1 https://github.com/triggerdotdev/trigger.dev/pull/4291/commits
Checks 2 https://github.com/triggerdotdev/trigger.dev/pull/4291/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4291/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4291/files
fix(sdk): resolve ReferenceError in envvars.update outside task context https://github.com/triggerdotdev/trigger.dev/pull/4291/files#top
Show all changes 1 commit https://github.com/triggerdotdev/trigger.dev/pull/4291/files
9a71ef6 fix(sdk): resolve ReferenceError in envvars.update outside task context ANSHSINGH050404 Jul 20, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4291/commits/9a71ef64c6f4ba9abd3d26128b67f72ca319afd3
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4291/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4291/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4291/files
envvars-update-name-scope.md https://github.com/triggerdotdev/trigger.dev/pull/4291/files#diff-bcac214d1837f704bf66bdb61f3ae6d22494f0059793897c97b509bbb0281403
envvars.ts https://github.com/triggerdotdev/trigger.dev/pull/4291/files#diff-e3c3a829553adfcdc22268b57f6b66043285ed0c344b829df5107f1547a8019d
triggerClient.types.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4291/files#diff-4d8926ef9158f9b12b8be7a5ba2fd8c48575d0c4b17b56adf3e0f58e0a64d1f5
.changeset/envvars-update-name-scope.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4291/files#diff-bcac214d1837f704bf66bdb61f3ae6d22494f0059793897c97b509bbb0281403
View file https://github.com/ANSHSINGH050404/trigger.dev/blob/9a71ef64c6f4ba9abd3d26128b67f72ca319afd3/.changeset/envvars-update-name-scope.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4291/{{ revealButtonHref }}
packages/trigger-sdk/src/v3/envvars.tshttps://github.com/triggerdotdev/trigger.dev/pull/4291/files#diff-e3c3a829553adfcdc22268b57f6b66043285ed0c344b829df5107f1547a8019d
View file https://github.com/ANSHSINGH050404/trigger.dev/blob/9a71ef64c6f4ba9abd3d26128b67f72ca319afd3/packages/trigger-sdk/src/v3/envvars.ts
Open in desktop https://desktop.github.com
devin-ai-integrationhttps://github.com/apps/devin-ai-integration
Jul 20, 2026https://github.com/triggerdotdev/trigger.dev/pull/4291/files#r3612442431
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://app.devin.ai/review/triggerdotdev/trigger.dev/pull/4291
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4291/files
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4291/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4291/files#diff-e3c3a829553adfcdc22268b57f6b66043285ed0c344b829df5107f1547a8019d
https://github.com/triggerdotdev/trigger.dev/pull/4291/files#diff-e3c3a829553adfcdc22268b57f6b66043285ed0c344b829df5107f1547a8019d
packages/trigger-sdk/src/v3/triggerClient.types.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/4291/files#diff-4d8926ef9158f9b12b8be7a5ba2fd8c48575d0c4b17b56adf3e0f58e0a64d1f5
View file https://github.com/ANSHSINGH050404/trigger.dev/blob/9a71ef64c6f4ba9abd3d26128b67f72ca319afd3/packages/trigger-sdk/src/v3/triggerClient.types.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4291/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4291/files#diff-4d8926ef9158f9b12b8be7a5ba2fd8c48575d0c4b17b56adf3e0f58e0a64d1f5
https://github.com/triggerdotdev/trigger.dev/pull/4291/files#diff-4d8926ef9158f9b12b8be7a5ba2fd8c48575d0c4b17b56adf3e0f58e0a64d1f5
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.