fix(bridge): build fails with SSR turned off (#2708)

This commit is contained in:
blazmrak 2022-01-24 12:40:49 +01:00 committed by GitHub
parent 03d33dfdef
commit 2b86345e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'),