mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +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
|
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') {
|
if (typeof target === 'function') {
|
||||||
target = target(nuxtOptions)
|
target = target(nuxtOptions)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user