NUXT_SLS_TARGET

This commit is contained in:
Pooya Parsa 2020-11-05 17:49:44 +01:00
parent 4c485ba33a
commit 005421e04d

View File

@ -42,7 +42,7 @@ export function getoptions (nuxtOptions: NuxtOptions): SLSOptions {
inlineChunks: true
}
let target = nuxtOptions.serverless.target || process.env.SLS_TARGET || 'node'
let target = process.env.NUXT_SLS_TARGET || nuxtOptions.serverless.target || 'node'
if (typeof target === 'function') {
target = target(nuxtOptions)
}