Skip to content

Conversation

@pi0
Copy link
Member

@pi0 pi0 commented Jan 5, 2026

This PR adds a preview command for vercel preset.

(hot) fixes #3905 as tanstack start now having hard requirment of vite preview server for prerendering.

@vercel
Copy link

vercel bot commented Jan 5, 2026

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

Project Deployment Review Updated (UTC)
nitro.build Ready Ready Preview, Comment Jan 5, 2026 3:41pm

@coderabbitai
Copy link

coderabbitai bot commented Jan 5, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

The Vercel preset's preview command value in commands object is updated from an empty string to "npx srvx --static ../../static ./functions/__server.func/index.mjs", enabling the preview deployment step to serve static files and the server function.

Changes

Cohort / File(s) Summary
Vercel preset command configuration
src/presets/vercel/preset.ts
Updated commands.preview from empty string to "npx srvx --static ../../static ./functions/__server.func/index.mjs" to enable preview command functionality

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/vercel-preview-command

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between df7fd85 and 064423f.

📒 Files selected for processing (1)
  • src/presets/vercel/preset.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@pi0 pi0 merged commit 72b037f into main Jan 5, 2026
6 of 9 checks passed
@pi0 pi0 deleted the fix/vercel-preview-command branch January 5, 2026 15:42
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.

Tanstack Start prerender broken with Nitro v3 on Vercel

2 participants