mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 00:23:53 +00:00
NUXT_SLS_TARGET
This commit is contained in:
parent
4c485ba33a
commit
005421e04d
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user