chore: bump version (#1775)
This commit is contained in:
2
packages/env/package.json
vendored
2
packages/env/package.json
vendored
@@ -14,7 +14,7 @@
|
||||
"./constant": "./src/constant.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blocksuite/global": "0.5.0-20230324040005-14417c2",
|
||||
"@blocksuite/global": "0.5.0-20230326033652-70ca43c",
|
||||
"lit": "^2.7.0"
|
||||
}
|
||||
}
|
||||
|
||||
10
packages/env/src/index.ts
vendored
10
packages/env/src/index.ts
vendored
@@ -121,9 +121,13 @@ export const publicRuntimeConfigSchema = z.object({
|
||||
|
||||
export type PublicRuntimeConfig = z.infer<typeof publicRuntimeConfigSchema>;
|
||||
|
||||
const { publicRuntimeConfig: config } = getConfig() as {
|
||||
publicRuntimeConfig: PublicRuntimeConfig;
|
||||
};
|
||||
const { publicRuntimeConfig: config } =
|
||||
getConfig() ??
|
||||
({
|
||||
publicRuntimeConfig: {},
|
||||
} as {
|
||||
publicRuntimeConfig: PublicRuntimeConfig;
|
||||
});
|
||||
|
||||
publicRuntimeConfigSchema.parse(config);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user