Skip to content

fix(dev/vite): remove stale server build when ssr:false - #15430

Closed
ErfanBagheri404 wants to merge 1 commit into
remix-run:mainfrom
ErfanBagheri404:fix/rr-15305-stale-server-build
Closed

fix(dev/vite): remove stale server build when ssr:false#15430
ErfanBagheri404 wants to merge 1 commit into
remix-run:mainfrom
ErfanBagheri404:fix/rr-15305-stale-server-build

Conversation

@ErfanBagheri404

Copy link
Copy Markdown

Fixes #15305

The buildApp post-handler that deletes serverBuildDirectory was commented out in 75de31f, leaving build/server/index.js behind after ssr:false builds.

Reactivate it with async rm and a fallback to getServerBuildDirectory for non-standard outDir layouts.

The buildApp post-handler that deletes serverBuildDirectory was commented
out in 75de31f, leaving build/server/index.js behind. Reactivate it
with async rm and fallback to getServerBuildDirectory for non-standard
outDir layouts. Fixes remix-run#15305.
@brophdawg11

Copy link
Copy Markdown
Contributor

Dup of #15307

@brophdawg11 brophdawg11 closed this Sep 3, 2026
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.

ssr: false leaves build/server/index.js behind (was removed in v7)

2 participants