mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #12] vinext init generates vite.config.ts with duplicate rsc() plugin for App Router projects #4
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#4
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?
Originally created by @southpolesteve on GitHub (Feb 24, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/12
Description
When
vinext initdetects an App Router project (i.e. anapp/directory), it generates avite.config.tsthat includes bothvinext()and an explicitrsc()call in the plugins array. However,vinext()already auto-registers@vitejs/plugin-rscwhenapp/is detected, causing a fatal error on startup.Steps to Reproduce
Generated Config
Actual Behavior
Expected Behavior
For App Router projects,
vinext initshould generate a simpler config without the explicitrsc()call:The explicit
rsc()config should only be generated for Pages Router projects or when the user opts out of auto-registration.Environment
@southpolesteve commented on GitHub (Feb 24, 2026):
Fixed in #15 —
vinext initnow generates a cleanplugins: [vinext()]config for App Router projects without the duplicatersc()call. Released in vinext@0.0.3.