From a2413dc5fd05b6d2bb1e1aafdce03c341ac5a5f0 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Mon, 9 Nov 2020 00:28:30 +0100 Subject: [PATCH] fix jiti issue should be fixed on jiti later on to support syntax --- packages/nitro/src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nitro/src/config.ts b/packages/nitro/src/config.ts index cc0d8ddebd..3459beaba1 100644 --- a/packages/nitro/src/config.ts +++ b/packages/nitro/src/config.ts @@ -78,7 +78,7 @@ export function getoptions (nuxt: SLSNuxt): SLSOptions { generateIgnore: [] } - const target = process.env.NUXT_SLS_TARGET || nuxt.options.serverless?.target || detectTarget() + const target = process.env.NUXT_SLS_TARGET || (nuxt.options.serverless || {}).target || detectTarget() let targetDefaults = TARGETS[target] || tryImport(nuxt.options.rootDir, target) if (!targetDefaults) { throw new Error('Cannot resolve target: ' + target)