fix(config): merge app namespace rather than overriding (#9039)

This commit is contained in:
Daniel Roe 2021-03-25 10:20:17 +00:00 committed by GitHub
parent 7c86c11d94
commit a6fc5da5f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -461,7 +461,7 @@ export function getNuxtConfig (_options) {
}) })
// Expose app config to $config.app // Expose app config to $config.app
options.publicRuntimeConfig = options.publicRuntimeConfig || {} options.publicRuntimeConfig = options.publicRuntimeConfig || {}
options.publicRuntimeConfig.app = options.app options.publicRuntimeConfig.app = defu(options.publicRuntimeConfig.app, options.app)
// Generate staticAssets // Generate staticAssets
const { staticAssets } = options.generate const { staticAssets } = options.generate