Skip to content

buildplan: Inertia SSR is optional - #118

Merged
ramonmalcolm10 merged 1 commit into
mainfrom
inertia-ssr-optional
Nov 29, 2026
Merged

ramonmalcolm10 merged 1 commit into
mainfrom
inertia-ssr-optional

Conversation

@ramonmalcolm10

Copy link
Copy Markdown
Contributor

Laravel + Inertia apps that don't build an SSR bundle failed with the SSR build made no bootstrap/ssr/ssr.js… (eats, 2026-11-29). SSR is now used only when the build makes one of Inertia's SSR files; otherwise the build goes on, nothing runs beside the web, and the log says pages render in the browser.

A project's own compiled SSR binary (build:ssr with bun build --compile) must still exist: it asked for it explicitly.

Test: TestNoSSRBundleBuildsWithoutSSR runs the assemble step with no SSR bundle (red before, green after).

A Vite ssr entry or a build:ssr script doesn't mean the build made an SSR
bundle. With none of bootstrap/ssr/ssr.js, app.js, ssr.mjs or app.mjs the
build goes on, nothing runs beside the web, and the log says pages render
in the browser. A project's own compiled renderer must still exist.
@ramonmalcolm10
ramonmalcolm10 merged commit 3c94bd5 into main Nov 29, 2026
5 checks passed
@ramonmalcolm10
ramonmalcolm10 deleted the inertia-ssr-optional branch November 29, 2026 17:04
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