mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +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 createRequire from 'create-require'
|
||||||
import { pascalCase } from 'scule'
|
import { pascalCase } from 'scule'
|
||||||
import jiti from 'jiti'
|
import jiti from 'jiti'
|
||||||
|
import defu from 'defu'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
/**
|
/**
|
||||||
@ -697,8 +698,6 @@ export default {
|
|||||||
* @version 3
|
* @version 3
|
||||||
*/
|
*/
|
||||||
publicRuntimeConfig: {
|
publicRuntimeConfig: {
|
||||||
app: {
|
$resolve: (val, get) => defu(val, { app: get('app') })
|
||||||
$resolve: (val, get) => ({ ...get('app'), ...(val || {}) })
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user