mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(bridge): don't override existing baseURL
property (#2827)
This commit is contained in:
parent
cd42f62fb9
commit
beaa369892
@ -18,7 +18,7 @@ export function setupNitroBridge () {
|
||||
// Handle legacy property name `assetsPath`
|
||||
nuxt.options.app.buildAssetsDir = nuxt.options.app.buildAssetsDir || nuxt.options.app.assetsPath
|
||||
nuxt.options.app.assetsPath = nuxt.options.app.buildAssetsDir
|
||||
nuxt.options.app.baseURL = (nuxt.options.app as any).basePath
|
||||
nuxt.options.app.baseURL = nuxt.options.app.baseURL || (nuxt.options.app as any).basePath
|
||||
// Nitro expects app config on `config.app` rather than `config._app`
|
||||
nuxt.options.publicRuntimeConfig.app = nuxt.options.publicRuntimeConfig.app || {}
|
||||
Object.assign(nuxt.options.publicRuntimeConfig.app, nuxt.options.publicRuntimeConfig._app)
|
||||
|
Loading…
Reference in New Issue
Block a user