diff --git a/packages/nitro/src/index.ts b/packages/nitro/src/index.ts index 19f20170df..80e6fbf074 100644 --- a/packages/nitro/src/index.ts +++ b/packages/nitro/src/index.ts @@ -13,8 +13,8 @@ export default function slsModule () { const options = getoptions(nuxt.options, nuxt.options.serverless || {}) // Tune webpack config - nuxt.options.build._minifyServer = options.minify !== false - nuxt.options.build.standalone = true + nuxt.options.build._minifyServer = false + nuxt.options.build.standalone = false // Tune generator nuxt.options.generate.crawler = false diff --git a/packages/nitro/src/targets/node.ts b/packages/nitro/src/targets/node.ts index 71025fd15a..c3bd71724d 100644 --- a/packages/nitro/src/targets/node.ts +++ b/packages/nitro/src/targets/node.ts @@ -3,5 +3,6 @@ import { SLSTarget } from '../config' export const node: SLSTarget = { entry: '{{ runtimeDir }}/targets/node', outName: 'index.js', - inlineChunks: false + inlineChunks: false, + minify: true }