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/anycontext-front/src/env.js | |
| parent | chaos (diff) | |
| download | archived-supermemory-eba818ffb4ca84f24f4d29924533bc2c098c88ce.tar.xz archived-supermemory-eba818ffb4ca84f24f4d29924533bc2c098c88ce.zip | |
EVERYTHING WORKING PERFECTLY
Diffstat (limited to 'apps/anycontext-front/src/env.js')
| -rw-r--r-- | apps/anycontext-front/src/env.js | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/apps/anycontext-front/src/env.js b/apps/anycontext-front/src/env.js deleted file mode 100644 index 2ed9456a..00000000 --- a/apps/anycontext-front/src/env.js +++ /dev/null @@ -1,67 +0,0 @@ -import { createEnv } from "@t3-oss/env-nextjs"; -import { z } from "zod"; - -export const env = process.env - -// 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(), -// 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() -// ), -// GOOGLE_CLIENT_ID: z.string(), -// GOOGLE_CLIENT_SECRET: z.string() -// }, - -// /** -// * Specify your client-side environment variables schema here. This way you can ensure the app -// * isn't built with invalid env vars. To expose them to the client, prefix them with -// * `NEXT_PUBLIC_`. -// */ -// client: { -// // NEXT_PUBLIC_CLIENTVAR: z.string(), -// }, - -// /** -// * You can't destruct `process.env` as a regular object in the Next.js edge runtimes (e.g. -// * middlewares) or client-side so we need to destruct manually. -// */ -// runtimeEnv: { -// DATABASE_URL: process.env.DATABASE_URL, -// NODE_ENV: process.env.NODE_ENV, -// NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET, -// NEXTAUTH_URL: process.env.NEXTAUTH_URL, -// GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID, -// GOOGLE_CLIENT_SECRET: process.env.GOOGLE_CLIENT_SECRET, -// }, -// /** -// * Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially -// * useful for Docker builds. -// */ -// skipValidation: !!process.env.SKIP_ENV_VALIDATION, -// /** -// * Makes it so that empty strings are treated as undefined. `SOME_VAR: z.string()` and -// * `SOME_VAR=''` will throw an error. -// */ -// emptyStringAsUndefined: true, -// }); |