mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(bridge): build fails with SSR turned off (#2708)
This commit is contained in:
parent
03d33dfdef
commit
2b86345e9e
@ -51,7 +51,7 @@ export async function buildServer (ctx: ViteBuildContext) {
|
|||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
outDir: resolve(ctx.nuxt.options.buildDir, 'dist/server'),
|
outDir: resolve(ctx.nuxt.options.buildDir, 'dist/server'),
|
||||||
ssr: true,
|
ssr: ctx.nuxt.options.ssr ?? true,
|
||||||
ssrManifest: true,
|
ssrManifest: true,
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
input: resolve(ctx.nuxt.options.buildDir, 'server.js'),
|
input: resolve(ctx.nuxt.options.buildDir, 'server.js'),
|
||||||
|
Loading…
Reference in New Issue
Block a user