mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #82] [MERGED] feat: support nitro plugin to deploy everywhere #294
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#294
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/82
Author: @pi0
Created: 2/26/2026
Status: ✅ Merged
Merged: 3/1/2026
Merged by: @southpolesteve
Base:
main← Head:nitro📝 Commits (4)
78689affeat: support nitro plugin to deploy everywhere63da5a5try vite 7b55bbf7cover more features in playground0d67999Merge remote-tracking branch 'origin/main' into fix/nitro-conflicts📊 Changes
22 files changed (+1325 additions, -5 deletions)
View changed files
➕
examples/app-router-nitro/.gitignore(+3 -0)➕
examples/app-router-nitro/README.md(+31 -0)➕
examples/app-router-nitro/app/_guestbook.ts(+10 -0)➕
examples/app-router-nitro/app/_styles.ts(+128 -0)➕
examples/app-router-nitro/app/about/page.tsx(+101 -0)➕
examples/app-router-nitro/app/actions.ts(+17 -0)➕
examples/app-router-nitro/app/api/hello/route.ts(+51 -0)➕
examples/app-router-nitro/app/blog/[slug]/page.tsx(+92 -0)➕
examples/app-router-nitro/app/components/clock.tsx(+22 -0)➕
examples/app-router-nitro/app/components/counter.tsx(+56 -0)➕
examples/app-router-nitro/app/error.tsx(+26 -0)➕
examples/app-router-nitro/app/layout.tsx(+114 -0)➕
examples/app-router-nitro/app/loading.tsx(+16 -0)➕
examples/app-router-nitro/app/not-found.tsx(+19 -0)➕
examples/app-router-nitro/app/page.tsx(+99 -0)➕
examples/app-router-nitro/middleware.ts(+22 -0)➕
examples/app-router-nitro/package.json(+17 -0)➕
examples/app-router-nitro/tsconfig.json(+13 -0)➕
examples/app-router-nitro/vite.config.ts(+10 -0)📝
packages/vinext/src/index.ts(+11 -5)...and 2 more files
📄 Description
#80 (https://github.com/cloudflare/vinext/issues/80#issuecomment-3963196097)
This PR adds support for the Nitro Vite plugin. It enables deployment to all Nitro deployment targets with no additional overhead.
For local development, the SSR entry must export
{ fetch }. This PR updates the default SSR entry to export it. (This follows the same contract between Nitro and TanStack Start)When the plugin is detected, related configuration (such as externals) are adjusted automatically.
Deployment
In most CI/CD environments, deployment requires zero configuration beyond adding the plugin.
Local deployment:
Example deployments:
Notes
vite previewappears to have an issue with RSC.This likely needs to be resolved in either Nitro or the RSC plugin.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.