Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix: making serverConfig readonly

Mohamed Basseme67c33e46626
diff --git a/packages/shared/config.ts b/packages/shared/config.ts
index d4a951f1..634f083b 100644
--- a/packages/shared/config.ts
+++ b/packages/shared/config.ts
@@ -404,7 +404,9 @@ const serverConfigSchema = allEnv.transform((val, ctx) => {
return obj;
});
-const serverConfig = serverConfigSchema.parse(process.env);
+const serverConfig: Readonly<z.infer<typeof serverConfigSchema>> =
+ serverConfigSchema.parse(process.env);
+
// Always explicitly pick up stuff from server config to avoid accidentally leaking stuff
export const clientConfig = {
publicUrl: serverConfig.publicUrl,