Skip to content

fix: inherit context._platform for direct fetch#3336

Merged
pi0 merged 2 commits intov2from
fix/preserve-platform
Apr 27, 2025
Merged

fix: inherit context._platform for direct fetch#3336
pi0 merged 2 commits intov2from
fix/preserve-platform

Conversation

@pi0
Copy link
Member

@pi0 pi0 commented Apr 27, 2025

resolves #3335

In direct fetch scenarios (like an SSR route that fetches an API), we need to inherit _platform context to make context like event.context.cloudflare inherited.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Apr 27, 2025

Deploying nitrojs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 79739e6
Status: ✅  Deploy successful!
Preview URL: https://c5a91170.nitrojs.pages.dev
Branch Preview URL: https://fix-preserve-platform.nitrojs.pages.dev

View logs

@pi0 pi0 changed the base branch from v3 to v2 April 27, 2025 17:00
@pi0 pi0 changed the title fix/preserve platform fix: inherit context._platform for direct fetch Apr 27, 2025
@pi0 pi0 changed the title fix: inherit context._platform for direct fetch fix: inherit context._platform for direct fetch Apr 27, 2025
@pi0 pi0 merged commit f258555 into v2 Apr 27, 2025
5 checks passed
@pi0 pi0 deleted the fix/preserve-platform branch April 27, 2025 17:05
luc122c pushed a commit to luc122c/unjs-nitro that referenced this pull request Jul 17, 2025
@Hebilicious Hebilicious mentioned this pull request Sep 14, 2025
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant