Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

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

Merged
merged 5 commits into from Nov 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/schema/src/config/common.ts
Expand Up @@ -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,
Expand Down