mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
refactor(nuxt): simplify runtimeConfig
initialization of client side (#26558)
This commit is contained in:
parent
f00dcdf0f8
commit
8eef1e3c57
@ -338,7 +338,7 @@ export function createNuxtApp (options: CreateOptions) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Expose runtime config
|
// Expose runtime config
|
||||||
const runtimeConfig = import.meta.server ? options.ssrContext!.runtimeConfig : reactive(nuxtApp.payload.config!)
|
const runtimeConfig = import.meta.server ? options.ssrContext!.runtimeConfig : nuxtApp.payload.config!
|
||||||
nuxtApp.provide('config', runtimeConfig)
|
nuxtApp.provide('config', runtimeConfig)
|
||||||
|
|
||||||
return nuxtApp
|
return nuxtApp
|
||||||
|
Loading…
Reference in New Issue
Block a user