Skip to content

Run buildEnd after prerendering#15211

Open
brophdawg11 wants to merge 2 commits into
mainfrom
brophdawg11/codex-build-end-after-prerender
Open

Run buildEnd after prerendering#15211
brophdawg11 wants to merge 2 commits into
mainfrom
brophdawg11/codex-build-end-after-prerender

Conversation

@brophdawg11

Copy link
Copy Markdown
Contributor

Summary

  • move the React Router config buildEnd hook to run after the prerender plugin completes
  • keep buildEnd args unchanged and close plugin resources from the final build wrapper
  • add a prerender regression test that verifies buildEnd can see generated HTML/data files

Closes #15206

Testing

  • pnpm test:integration:run integration/vite-prerender-test.ts --project chromium -g "Runs buildEnd after prerendering is complete"
  • pnpm test:integration:run integration/vite-presets-test.ts --project chromium

@github-actions

Copy link
Copy Markdown
Contributor

Preview Build Available

Preview builds have been created for this PR. You can install react-router using:

pnpm install "remix-run/react-router#preview/pr-15211&path:packages/react-router"

And/or install other packages via:

pnpm install "remix-run/react-router#preview/pr-15211&path:packages/react-router-dev"
pnpm install "remix-run/react-router#preview/pr-15211&path:packages/react-router-express"
pnpm install "remix-run/react-router#preview/pr-15211&path:packages/react-router-node"
pnpm install "remix-run/react-router#preview/pr-15211&path:packages/react-router-serve"

These preview builds will be updated automatically as you push new commits.

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

✅ Change File Found

A change file file exists in this PR. Thanks!

@brophdawg11 brophdawg11 marked this pull request as ready for review June 18, 2026 19:06
Comment thread packages/react-router-dev/.changes/patch.build-end-after-prerender.md Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prerender buildEnd hook

1 participant