diff options
| author | Yash <[email protected]> | 2024-04-11 04:52:44 +0000 |
|---|---|---|
| committer | Yash <[email protected]> | 2024-04-11 04:52:44 +0000 |
| commit | 6dcc7d18c9be5e3a5e0a3ff60668424ee0158b4e (patch) | |
| tree | 179aa936536510cc707368fc7c330c4c7fbdc3f8 /apps/web/src/env.js | |
| parent | novel editor (diff) | |
| parent | save user ID with url to ensure that same website can be saved by users (diff) | |
| download | supermemory-new-ui.tar.xz supermemory-new-ui.zip | |
Merge branch 'main' of https://github.com/Dhravya/supermemory into new-uinew-ui
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(), |