mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 09:25:54 +00:00
fix(kit): deep assign app
to publicRuntimeConfig
(#1094)
This commit is contained in:
parent
f974425cc4
commit
571bf94d39
@ -3,6 +3,7 @@ import env from 'std-env'
|
||||
import createRequire from 'create-require'
|
||||
import { pascalCase } from 'scule'
|
||||
import jiti from 'jiti'
|
||||
import defu from 'defu'
|
||||
|
||||
export default {
|
||||
/**
|
||||
@ -697,8 +698,6 @@ export default {
|
||||
* @version 3
|
||||
*/
|
||||
publicRuntimeConfig: {
|
||||
app: {
|
||||
$resolve: (val, get) => ({ ...get('app'), ...(val || {}) })
|
||||
}
|
||||
$resolve: (val, get) => defu(val, { app: get('app') })
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user