Skip to content

feat(api): use request fetch#3677

Merged
farnabaz merged 2 commits intonuxt:mainfrom
dargmuesli:feat/fetch
Jan 14, 2026
Merged

feat(api): use request fetch#3677
farnabaz merged 2 commits intonuxt:mainfrom
dargmuesli:feat/fetch

Conversation

@dargmuesli
Copy link
Copy Markdown
Member

@dargmuesli dargmuesli commented Jan 7, 2026

🔗 Linked issue

resolves #3676

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

See Nuxt server's forwarding context & headers description.

Using the method described there, this PR aims to make the context forwarding more flexible. This helps me adding support for the nuxt-csurf module for example.

Please check the first commit first to see the actual change this PR proposes more clearly. Due to a typescript excessive stack depth error I had to refactor the code a bit in the second commit.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 7, 2026

@dargmuesli is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Jan 7, 2026

npm i https://pkg.pr.new/@nuxt/content@3677

commit: a03fea8

@dargmuesli dargmuesli marked this pull request as ready for review January 7, 2026 21:15
Copy link
Copy Markdown
Member

@farnabaz farnabaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@farnabaz farnabaz merged commit 2b32a4d into nuxt:main Jan 14, 2026
4 of 5 checks passed
@dargmuesli dargmuesli deleted the feat/fetch branch January 17, 2026 01:59
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.

feat(api): forward context headers

2 participants