diff options
Diffstat (limited to 'apps/web/src/env.js')
| -rw-r--r-- | apps/web/src/env.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/web/src/env.js b/apps/web/src/env.js index 3d3085fa..2495d75b 100644 --- a/apps/web/src/env.js +++ b/apps/web/src/env.js @@ -1,7 +1,6 @@ import { createEnv } from "@t3-oss/env-nextjs"; import { z } from "zod"; - export const env = createEnv({ /** * Specify your server-side environment variables schema here. This way you can ensure the app @@ -12,15 +11,13 @@ export const env = createEnv({ .enum(["development", "test", "production"]) .default("development"), NEXTAUTH_SECRET: - process.env.NODE_ENV === "production" - ? z.string() - : z.string(), + process.env.NODE_ENV === "production" ? z.string() : z.string(), NEXTAUTH_URL: z.preprocess( // This makes Vercel deployments not fail if you don't set NEXTAUTH_URL // Since NextAuth.js automatically uses the VERCEL_URL if present. (str) => process.env.VERCEL_URL ?? str, // VERCEL_URL doesn't include `https` so it cant be validated as a URL - process.env.VERCEL ? z.string() : z.string().url() + process.env.VERCEL ? z.string() : z.string().url(), ), GOOGLE_CLIENT_ID: z.string(), GOOGLE_CLIENT_SECRET: z.string(), |