mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 06:31:27 +00:00
fix: handle if serverless is not set in config
This commit is contained in:
parent
374487ea29
commit
d6aea1e0df
@ -60,7 +60,7 @@ export function getoptions (nuxtOptions: NuxtOptions): SLSOptions {
|
|||||||
targetDir: null
|
targetDir: null
|
||||||
}
|
}
|
||||||
|
|
||||||
let target = process.env.NUXT_SLS_TARGET || nuxtOptions.serverless.target || detectTarget()
|
let target = process.env.NUXT_SLS_TARGET || nuxtOptions.serverless?.target || detectTarget()
|
||||||
if (typeof target === 'function') {
|
if (typeof target === 'function') {
|
||||||
target = target(nuxtOptions)
|
target = target(nuxtOptions)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user