From 8eef1e3c57d5d034ffb733c623ec811c3dd433de Mon Sep 17 00:00:00 2001 From: Alex Liu Date: Sat, 30 Mar 2024 15:48:43 +0800 Subject: [PATCH] refactor(nuxt): simplify `runtimeConfig` initialization of client side (#26558) --- packages/nuxt/src/app/nuxt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/app/nuxt.ts b/packages/nuxt/src/app/nuxt.ts index 61aecaf95f..95734eb125 100644 --- a/packages/nuxt/src/app/nuxt.ts +++ b/packages/nuxt/src/app/nuxt.ts @@ -338,7 +338,7 @@ export function createNuxtApp (options: CreateOptions) { } // 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) return nuxtApp