Skip to content

Commit e67c33e

Browse files
committed
fix: making serverConfig readonly
1 parent 6ab7984 commit e67c33e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/shared/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,9 @@ const serverConfigSchema = allEnv.transform((val, ctx) => {
404404
return obj;
405405
});
406406

407-
const serverConfig = serverConfigSchema.parse(process.env);
407+
const serverConfig: Readonly<z.infer<typeof serverConfigSchema>> =
408+
serverConfigSchema.parse(process.env);
409+
408410
// Always explicitly pick up stuff from server config to avoid accidentally leaking stuff
409411
export const clientConfig = {
410412
publicUrl: serverConfig.publicUrl,

0 commit comments

Comments
 (0)