Skip to content

fix(vite): inherit renderer for prerender build - #4325

Merged
pi0 merged 2 commits into
mainfrom
fix/vite-prerender-services
Jun 8, 2026
Merged

pi0 merged 2 commits into
mainfrom
fix/vite-prerender-services

Conversation

@pi0

@pi0 pi0 commented Jun 8, 2026

Copy link
Copy Markdown
Member

No description provided.

@vercel

vercel Bot commented Jun 8, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
nitro.build Ready Ready Preview, Comment Jun 8, 2026 7:04pm

Request Review

@coderabbitai

coderabbitai Bot commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cb6aa65a-4187-46e3-9d13-706211cc0ffd

📥 Commits

Reviewing files that changed from the base of the PR and between 8eda115 and 88a5f47.

📒 Files selected for processing (1)
  • src/prerender/prerender.ts

📝 Walkthrough

Walkthrough

The prerender initialization now passes the renderer configuration explicitly from Nitro options to the prerenderer config, and calls nitroRenderer.routing.sync() after the prerender:init hook to synchronize routing before building and generating routes.

Changes

Prerender Initialization

Layer / File(s) Summary
Renderer configuration and routing sync
src/prerender/prerender.ts
Prerenderer config sets renderer from Nitro options, and routing.sync() is called after prerender:init hook to synchronize routing state before route generation.

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title follows conventional commits format with 'fix' prefix and clearly describes the change: inheriting renderer for prerender build.
Description check ✅ Passed No pull request description was provided, but the title and code changes are sufficiently descriptive to understand the purpose.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/vite-prerender-services

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 eecabe2 into main Jun 8, 2026
8 checks passed
@pi0
pi0 deleted the fix/vite-prerender-services branch June 8, 2026 19:04

This branch was successfully deployed

1 active deployment
Preview — 88a5f47c Deployed Jun 8, 2026 by vercel[bot]
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.

1 participant