You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1099abf
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server-utils): Stop the orchestrion Vite plugin from adding an empty ssr environment
In a build, Vite 6+ adds an `ssr` environment when the config has a top-level
`ssr` key. The orchestrion plugin always returned `ssr.noExternal` from its
`config` hook, so Vite created an `ssr` environment without an entry. A
`buildApp` that builds every environment (for example `vite build --app`) then
failed with "input should not be an html file when building for SSR".
On Vite 6+ the plugin now sets `resolve.noExternal` per server environment in
`configEnvironment`. The top-level `ssr` key is only added when the config
already has `ssr` or `build.ssr`, which keeps Vite 5 SSR builds (Remix v2,
SvelteKit) force-bundling the instrumented modules.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments