We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbe30ca commit 74609bcCopy full SHA for 74609bc
packages/frontend/src/api/env.ts
@@ -1,6 +1,10 @@
1
import { z } from "zod";
2
import { createEnv } from "@t3-oss/env-core";
3
4
+type Env = {
5
+ env: Record<string, string | number | boolean>;
6
+};
7
+
8
export const env = createEnv({
9
server: {
10
/**
@@ -54,7 +58,8 @@ export const env = createEnv({
54
58
VITE_MENTOR_ROLE_ID: z.string(),
55
59
},
56
60
runtimeEnv:
57
- typeof window === "undefined" && !import.meta.env.SSR
61
+ typeof window === "undefined" &&
62
+ !(import.meta as unknown as { env: Record<string, string> }).env.SSR
63
? process.env
64
: (import.meta as unknown as { env: Record<string, string> }).env,
65
clientPrefix: "VITE_PUBLIC",
0 commit comments