mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 09:56:57 +00:00
remove commented out code and old todos
This commit is contained in:
@@ -1,6 +1,3 @@
|
|||||||
// ZOD
|
|
||||||
FEN string
|
|
||||||
|
|
||||||
- favicon and page titles - SEO related things
|
- favicon and page titles - SEO related things
|
||||||
- rearrange buttons / header space - collapse on smaller screens
|
- rearrange buttons / header space - collapse on smaller screens
|
||||||
- Lichess login
|
- Lichess login
|
||||||
|
|||||||
-24
@@ -37,27 +37,3 @@ const getEnv = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const env = getEnv();
|
export const env = getEnv();
|
||||||
|
|
||||||
//
|
|
||||||
// const isServer = typeof window === "undefined";
|
|
||||||
// const rawEnv = isServer ? process.env : import.meta.env;
|
|
||||||
//
|
|
||||||
// let parsedEnv: z.infer<typeof fullSchema>;
|
|
||||||
//
|
|
||||||
// if (isServer) {
|
|
||||||
// const _env = fullSchema.safeParse(rawEnv);
|
|
||||||
// if (!_env.success) {
|
|
||||||
// console.error("❌ Invalid Server Environment Variables:");
|
|
||||||
// throw new Error("Invalid environment variables");
|
|
||||||
// }
|
|
||||||
// parsedEnv = _env.data;
|
|
||||||
// } else {
|
|
||||||
// const _env = clientSchema.safeParse(rawEnv);
|
|
||||||
// if (!_env.success) {
|
|
||||||
// console.error("❌ Invalid Client Environment Variables:");
|
|
||||||
// throw new Error("Invalid environment variables");
|
|
||||||
// }
|
|
||||||
// parsedEnv = _env.data as z.infer<typeof fullSchema>;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// export const env = parsedEnv;
|
|
||||||
|
|||||||
Reference in New Issue
Block a user