René's URL Explorer Experiment


Title: fix(astro): Fall back to process.env for runtime environment variables by alexcarpenter · Pull Request #7889 · clerk/javascript · GitHub

Open Graph Title: fix(astro): Fall back to process.env for runtime environment variables by alexcarpenter · Pull Request #7889 · clerk/javascript

X Title: fix(astro): Fall back to process.env for runtime environment variables by alexcarpenter · Pull Request #7889 · clerk/javascript

Description: Official JavaScript repository for Clerk authentication - fix(astro): Fall back to process.env for runtime environment variables by alexcarpenter · Pull Request #7889 · clerk/javascript

Open Graph Description: Add process.env as a third fallback in getContextEnvVar() so that PUBLIC_CLERK_PUBLISHABLE_KEY and other env vars set at runtime (e.g., via the Astro Node adapter) are properly read when import.met...

X Description: Add process.env as a third fallback in getContextEnvVar() so that PUBLIC_CLERK_PUBLISHABLE_KEY and other env vars set at runtime (e.g., via the Astro Node adapter) are properly read when import.met...

Opengraph URL: https://github.com/clerk/javascript/pull/7889

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/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:0c43c4a5-7f5b-7ada-9dae-69b26ac1b006
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC5FC:18F46F:D4F1D0:133AA37:6AFACBB5
html-safe-nonce9b20a5e2209a43cd49ac2481732545516479bd2de32ff58a6586c27a6b812524
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUZDOjE4RjQ2RjpENEYxRDA6MTMzQUEzNzo2QUZBQ0JCNSIsInZpc2l0b3JfaWQiOiIxMzc4NjI1NjE1NTE0MjI1NTg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac138f3275bd2db7b229df97ed27197260ae4061630be32b2e88961dcb85abadec
hovercard-subject-tagpull_request:3304699239
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/clerk/javascript/7889/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ebf3892980198b01c8475e0f4b1c3bab3a4ac5b5bdff09c7bfaf0b8ffcac4ac1/clerk/javascript/pull/7889
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ebf3892980198b01c8475e0f4b1c3bab3a4ac5b5bdff09c7bfaf0b8ffcac4ac1/clerk/javascript/pull/7889
og:image:altAdd process.env as a third fallback in getContextEnvVar() so that PUBLIC_CLERK_PUBLISHABLE_KEY and other env vars set at runtime (e.g., via the Astro Node adapter) are properly read when import.met...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealexcarpenter
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-cache
go-importgithub.com/clerk/javascript git https://github.com/clerk/javascript.git
octolytics-dimension-user_id49538330
octolytics-dimension-user_loginclerk
octolytics-dimension-repository_id438331492
octolytics-dimension-repository_nwoclerk/javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id438331492
octolytics-dimension-repository_network_root_nwoclerk/javascript
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
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/clerk/javascript/pull/7889#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F7889
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%2Fclerk%2Fjavascript%2Fpull%2F7889
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=clerk%2Fjavascript
Reloadhttps://github.com/clerk/javascript/pull/7889
Reloadhttps://github.com/clerk/javascript/pull/7889
Reloadhttps://github.com/clerk/javascript/pull/7889
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues44 (44)https://github.com/clerk/javascript/issues
Pull requests112 (112)https://github.com/clerk/javascript/pulls
Discussionshttps://github.com/clerk/javascript/discussions
Actionshttps://github.com/clerk/javascript/actions
Security and quality6 (6)https://github.com/clerk/javascript/security
Insightshttps://github.com/clerk/javascript/pulse
https://github.com/clerk/javascript
jacekradkohttps://github.com/jacekradko
mainhttps://github.com/clerk/javascript/tree/main
ac/astro-process-env-fallbackhttps://github.com/clerk/javascript/tree/ac/astro-process-env-fallback
Conversationhttps://github.com/clerk/javascript/pull/7889
Commits5 (5)https://github.com/clerk/javascript/pull/7889/commits
Checkshttps://github.com/clerk/javascript/pull/7889/checks
Files changedhttps://github.com/clerk/javascript/pull/7889/files
fix(astro): Fall back to process.env for runtime environment variableshttps://github.com/clerk/javascript/pull/7889#top
jacekradkohttps://github.com/jacekradko
mainhttps://github.com/clerk/javascript/tree/main
ac/astro-process-env-fallbackhttps://github.com/clerk/javascript/tree/ac/astro-process-env-fallback
https://github.com/alexcarpenter
alexcarpenterhttps://github.com/alexcarpenter
Feb 19, 2026https://github.com/clerk/javascript/pull/7889#issue-3964806464
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
#7841https://github.com/clerk/javascript/issues/7841
JSDoc commentshttps://jsdoc.app/about-getting-started.html
Documentationhttps://github.com/clerk/clerk-docs
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
https://github.com/alexcarpenter
https://github.com/claude
fix(astro): Fall back to process.env for runtime environment variableshttps://github.com/clerk/javascript/pull/7889/commits/e23e71abfdaad8451f50d7fc6acb76428f997747
e23e71ahttps://github.com/clerk/javascript/pull/7889/commits/e23e71abfdaad8451f50d7fc6acb76428f997747
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
Feb 19, 2026https://github.com/clerk/javascript/pull/7889#issuecomment-3929602923
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
Vercel for GitHubhttps://vercel.link/github-learn-more
clerk-js-sandboxhttps://vercel.com/clerk-production/clerk-js-sandbox
https://camo.githubusercontent.com/833ba95642364322d56bfc6cc95692affdd7a5a6ca7b50fdcc44aa7e47372d3b/68747470733a2f2f76657263656c2e636f6d2f7374617469632f7374617475732f72656164792e737667
Readyhttps://vercel.com/clerk-production/clerk-js-sandbox/3qX9tL2FZTBiErYc89xMTQK6Qe6n
Previewhttps://clerk-js-sandbox-git-ac-astro-process-env-fallback.clerkstage.dev
Commenthttps://vercel.live/open-feedback/clerk-js-sandbox-git-ac-astro-process-env-fallback.clerkstage.dev?via=pr-comment-feedback-link
https://vercel.com/vercel-agent/request-review?owner=clerk&repo=javascript&pr=7889
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
Feb 19, 2026https://github.com/clerk/javascript/pull/7889#issuecomment-3929603205
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
6e04ebahttps://github.com/clerk/javascript/commit/6e04eba38661e9b3e652964f65fb5ae9caa9dc03
Click here to learn what changesets arehttps://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md
Click here if you're a maintainer who wants to add another changeset to this PRhttps://github.com/clerk/javascript/new/ac/astro-process-env-fallback?filename=.changeset/forty-donuts-do.md&value=---%0A%22%40clerk%2Fastro%22%3A%20patch%0A%22%40clerk%2Fupgrade%22%3A%20patch%0A---%0A%0Afix(astro)%3A%20Fall%20back%20to%20process.env%20for%20runtime%20environment%20variables%0A
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
astro https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aastro
core-3 https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Acore-3
Feb 19, 2026https://github.com/clerk/javascript/pull/7889#event-22927392637
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-2rcxtlfv6.clerkstage.dev
Previewhttps://clerk-js-sandbox-2rcxtlfv6.clerkstage.dev
February 19, 2026 19:57https://github.com/clerk/javascript/pull/7889#event-22927396149
View deploymenthttps://clerk-js-sandbox-2rcxtlfv6.clerkstage.dev
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Feb 19, 2026https://github.com/clerk/javascript/pull/7889#issuecomment-3929622216
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
Astro: PUBLIC_CLERK_PUBLISHABLE_KEY cannot be changed after build #7841https://github.com/clerk/javascript/issues/7841
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
alexcarpenterhttps://github.com/alexcarpenter
February 19, 2026 15:07https://github.com/clerk/javascript/pull/7889#commits-pushed-cb96d9a
https://github.com/alexcarpenter
https://github.com/claude
fix(astro): Fall back to process.env for runtime environment variableshttps://github.com/clerk/javascript/pull/7889/commits/cb96d9ac9ab8baba157b8c35d7ab56e01f10dfb1
cb96d9ahttps://github.com/clerk/javascript/pull/7889/commits/cb96d9ac9ab8baba157b8c35d7ab56e01f10dfb1
https://github.com/alexcarpenter
Merge branch 'ac/astro-process-env-fallback' of github.com:clerk/java…https://github.com/clerk/javascript/pull/7889/commits/be7a4ffd302d14a0a7c96318a26695251d1be2ca
be7a4ffhttps://github.com/clerk/javascript/pull/7889/commits/be7a4ffd302d14a0a7c96318a26695251d1be2ca
https://github.com/wobsoriano
wobsorianohttps://github.com/wobsoriano
Feb 19, 2026 https://github.com/clerk/javascript/pull/7889#pullrequestreview-3828340055
View reviewed changes https://github.com/clerk/javascript/pull/7889/files/e23e71abfdaad8451f50d7fc6acb76428f997747
wobsorianohttps://github.com/wobsoriano
https://github.com/clerk/javascript/pull/7889#pullrequestreview-3828340055
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
https://github.com/alexcarpenter
https://github.com/claude
fix(astro): Fix type error in get-safe-env test helperhttps://github.com/clerk/javascript/pull/7889/commits/16d03467353b29c511ee9fca5704ba5b2729a2f1
16d0346https://github.com/clerk/javascript/pull/7889/commits/16d03467353b29c511ee9fca5704ba5b2729a2f1
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
temporarily deployedhttps://clerk-js-sandbox-fzpke69h9.clerkstage.dev
February 19, 2026 20:28https://github.com/clerk/javascript/pull/7889#event-22928219086
https://github.com/apps/pkg-pr-new
pkg-pr-newhttps://github.com/apps/pkg-pr-new
Feb 19, 2026https://github.com/clerk/javascript/pull/7889#issuecomment-3929811955
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
Open in StackBlitzhttps://pkg.pr.new/template/b27f3caf-17c0-4ad5-bc90-53e16d2fe8cc
6e04ebahttps://github.com/clerk/javascript/runs/64563260141
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
https://github.com/asdfjkalsdfla
asdfjkalsdflahttps://github.com/asdfjkalsdfla
Feb 21, 2026 https://github.com/clerk/javascript/pull/7889#pullrequestreview-3836034018
View reviewed changes https://github.com/clerk/javascript/pull/7889/files/16d03467353b29c511ee9fca5704ba5b2729a2f1
packages/astro/src/server/get-safe-env.tshttps://github.com/clerk/javascript/pull/7889/files/16d03467353b29c511ee9fca5704ba5b2729a2f1#diff-76d51c8d935bc8a804c70b3d7b475192e97ca24b5e74db3adbd1c42f8e511191
asdfjkalsdflahttps://github.com/asdfjkalsdfla
Feb 21, 2026https://github.com/clerk/javascript/pull/7889#discussion_r2836629668
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
jacekradkohttps://github.com/jacekradko
Feb 23, 2026https://github.com/clerk/javascript/pull/7889#discussion_r2842043361
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@asdfjkalsdflahttps://github.com/asdfjkalsdfla
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
https://github.com/asdfjkalsdfla
asdfjkalsdflahttps://github.com/asdfjkalsdfla
Feb 21, 2026 https://github.com/clerk/javascript/pull/7889#pullrequestreview-3836042337
View reviewed changes https://github.com/clerk/javascript/pull/7889/files/16d03467353b29c511ee9fca5704ba5b2729a2f1
asdfjkalsdflahttps://github.com/asdfjkalsdfla
https://github.com/clerk/javascript/pull/7889#pullrequestreview-3836042337
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
feat(astro)!: Prefer process.env over import.meta.env for env var res…https://github.com/clerk/javascript/pull/7889/commits/6e04eba38661e9b3e652964f65fb5ae9caa9dc03
6e04ebahttps://github.com/clerk/javascript/pull/7889/commits/6e04eba38661e9b3e652964f65fb5ae9caa9dc03
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-dsssembrx.clerkstage.dev
Previewhttps://clerk-js-sandbox-dsssembrx.clerkstage.dev
February 23, 2026 17:06https://github.com/clerk/javascript/pull/7889#event-23007753549
View deploymenthttps://clerk-js-sandbox-dsssembrx.clerkstage.dev
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
ac4364dhttps://github.com/clerk/javascript/commit/ac4364d6f8fbf54bcde11e18ee98584d55837205
Feb 23, 2026https://github.com/clerk/javascript/pull/7889#event-23011207905
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
February 23, 2026 19:29https://github.com/clerk/javascript/pull/7889#event-23011209084
Chat-JPTeasdalehttps://github.com/Chat-JPTeasdale
Mar 28, 2026 https://github.com/clerk/javascript/pull/7889#ref-commit-009a22c
https://github.com/ChatJPTeasdale
feat(shared): Add cloudflare:workers env fallback to getEnvVariablehttps://github.com/Chat-JPTeasdale/javascript/commit/009a22cad7c173b7b28da5f4beb75c68fe5684b1
009a22chttps://github.com/Chat-JPTeasdale/javascript/commit/009a22cad7c173b7b28da5f4beb75c68fe5684b1
clerk#7889https://github.com/clerk/javascript/pull/7889
clerk#8136https://github.com/clerk/javascript/pull/8136
feat(shared): Add cloudflare:workers env fallback to getEnvVariable #8196 https://github.com/clerk/javascript/pull/8196
feat: @clerk/shared getEnvVariable should support cloudflare:workers env for Cloudflare Workers runtimes #8197 https://github.com/clerk/javascript/issues/8197
Deployedhttps://clerk-js-sandbox-dsssembrx.clerkstage.dev
vercel[bot]https://github.com/apps/vercel
View deployment https://clerk-js-sandbox-dsssembrx.clerkstage.dev
https://github.co/hiddenchars
https://github.com/clerk/javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F7889
https://github.com/wobsoriano
wobsoriano https://github.com/wobsoriano
https://github.com/clerk/javascript/pull/7889/files/e23e71abfdaad8451f50d7fc6acb76428f997747
https://github.com/jacekradko
jacekradko https://github.com/jacekradko
https://github.com/clerk/javascript/pull/7889/files/16d03467353b29c511ee9fca5704ba5b2729a2f1
https://github.com/asdfjkalsdfla
asdfjkalsdfla https://github.com/asdfjkalsdfla
https://github.com/clerk/javascript/pull/7889/files/16d03467353b29c511ee9fca5704ba5b2729a2f1
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
astro https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aastro
core-3 https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Acore-3
Astro: PUBLIC_CLERK_PUBLISHABLE_KEY cannot be changed after build https://github.com/clerk/javascript/issues/7841
Please reload this pagehttps://github.com/clerk/javascript/pull/7889
https://github.com/alexcarpenter
https://github.com/jacekradko
https://github.com/wobsoriano
https://github.com/asdfjkalsdfla
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.