fix(core): avoid expand runtime config everywhere used (#7972)

This commit is contained in:
forehalo
2024-08-26 12:22:52 +00:00
parent 9ea4aaaf37
commit 0209e3fa76
5 changed files with 24 additions and 13 deletions

View File

@@ -346,7 +346,9 @@ export const createConfiguration: (
process.env.MIXPANEL_TOKEN
),
'process.env.DEBUG_JOTAI': JSON.stringify(process.env.DEBUG_JOTAI),
runtimeConfig: JSON.stringify(runtimeConfig),
'process.env.RUNTIME_CONFIG': JSON.stringify(
JSON.stringify(runtimeConfig)
),
}),
buildFlags.distribution === 'admin'
? null