fix(schema): initialise runtimeConfig.public with empty object (#9050)

This commit is contained in:
Daniel Roe 2022-11-16 11:42:25 +00:00 committed by GitHub
parent 9ab069b2a3
commit 38d7f61ac2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -424,7 +424,7 @@ export default defineUntypedSchema({
*/
runtimeConfig: {
$resolve: async (val: RuntimeConfig, get) => defu(val, {
public: await get('publicRuntimeConfig'),
public: {},
app: {
baseURL: (await get('app')).baseURL,
buildAssetsDir: (await get('app')).buildAssetsDir,