Skip to content

Conversation

@pi0
Copy link
Member

@pi0 pi0 commented Nov 16, 2025

Users (or frameworks like tanstack-start) might point vite SSR entry to server.ts, same file that nitro auto detects as server entry and it can cause issues as entry is intended for either of them.

This PR detect it, disables nitro server entry and warns to use distrinct path like src/server.ts to avoid conflicts.

@vercel
Copy link

vercel bot commented Nov 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
nitro.build Ready Ready Preview Comment Nov 16, 2025 11:16pm

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 16, 2025

Open in StackBlitz

npm i https://pkg.pr.new/nitrojs/nitro@3796

commit: 07d034d

@pi0 pi0 merged commit ae257c0 into main Nov 16, 2025
11 checks passed
@pi0 pi0 deleted the fix/server-entry-ssr branch November 16, 2025 23:33
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.

2 participants