diff options
| author | Dhravya <[email protected]> | 2024-02-26 17:53:38 -0700 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-02-26 17:53:38 -0700 |
| commit | eba818ffb4ca84f24f4d29924533bc2c098c88ce (patch) | |
| tree | 542bbc30559a93bc4569fcc103e9cc2fdc20e50c /apps/web/src/env.js | |
| parent | chaos (diff) | |
| download | supermemory-eba818ffb4ca84f24f4d29924533bc2c098c88ce.tar.xz supermemory-eba818ffb4ca84f24f4d29924533bc2c098c88ce.zip | |
EVERYTHING WORKING PERFECTLY
Diffstat (limited to 'apps/web/src/env.js')
| -rw-r--r-- | apps/web/src/env.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/web/src/env.js b/apps/web/src/env.js index eea6b505..8ab01a59 100644 --- a/apps/web/src/env.js +++ b/apps/web/src/env.js @@ -1,25 +1,20 @@ 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 * isn't built with invalid env vars. */ server: { - DATABASE_URL: z - .string() - .refine( - (str) => !str.includes("YOUR_MYSQL_URL_HERE"), - "You forgot to change the default URL" - ), NODE_ENV: z .enum(["development", "test", "production"]) .default("development"), NEXTAUTH_SECRET: process.env.NODE_ENV === "production" ? z.string() - : z.string().optional(), + : 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. |