Merged in fix/common-package-fix (pull request #2355)
fix: Tiny fixes in common package * Fix self-referencing and circular imports * Fix env isServer Approved-by: Joakim Jäderberg
This commit is contained in:
Vendored
+1
-1
@@ -7,7 +7,7 @@ export const env = createEnv({
|
||||
* and Netlify running Deno, window is never "undefined"
|
||||
* https://github.com/t3-oss/t3-env/issues/154
|
||||
*/
|
||||
isServer: true,
|
||||
isServer: typeof window === "undefined" || "Deno" in window,
|
||||
server: {
|
||||
NODE_ENV: z.enum(["development", "test", "production"]),
|
||||
REDIS_API_HOST: z.string().optional(),
|
||||
|
||||
Reference in New Issue
Block a user