forked from ceramicstudio/deforum
-
Notifications
You must be signed in to change notification settings - Fork 1
/
env.mjs
35 lines (34 loc) · 1.45 KB
/
env.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { createEnv } from "@t3-oss/env-nextjs";
import { z } from "zod";
export const env = createEnv({
server: {
// This is optional because it's only used in development.
// See https://next-auth.js.org/deployment.
NEXTAUTH_URL: z.string().url().optional(),
},
client: {
NEXT_PUBLIC_PROJECT_ID: z.string().min(1),
NEXT_PUBLIC_ENV_ID: z.string().min(1),
NEXT_PUBLIC_THIRDWEB_ID: z.string().min(1),
NEXT_PUBLIC_POST_ID: z.string().min(1),
NEXT_PUBLIC_COMMENT_ID: z.string().min(1),
NEXT_PUBLIC_PROFILE_ID: z.string().min(1),
NEXT_PUBLIC_CONTEXT_ID: z.string().min(1),
NEXT_PUBLIC_APP_URL: z.string().url(),
NEXT_PUBLIC_TACO_RITUAL_ID: z.string().min(1),
NEXT_PUBLIC_TACO_DOMAIN: z.enum(["lynx", "tapir", "mainnet"]),
},
runtimeEnv: {
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
NEXT_PUBLIC_THIRDWEB_ID: process.env.NEXT_PUBLIC_THIRDWEB_ID,
NEXT_PUBLIC_POST_ID: process.env.NEXT_PUBLIC_POST_ID,
NEXT_PUBLIC_COMMENT_ID: process.env.NEXT_PUBLIC_COMMENT_ID,
NEXT_PUBLIC_PROFILE_ID: process.env.NEXT_PUBLIC_PROFILE_ID,
NEXT_PUBLIC_CONTEXT_ID: process.env.NEXT_PUBLIC_CONTEXT_ID,
NEXT_PUBLIC_APP_URL: process.env.NEXT_PUBLIC_APP_URL,
NEXT_PUBLIC_PROJECT_ID: process.env.NEXT_PUBLIC_PROJECT_ID,
NEXT_PUBLIC_ENV_ID: process.env.NEXT_PUBLIC_ENV_ID,
NEXT_PUBLIC_TACO_RITUAL_ID: process.env.NEXT_PUBLIC_TACO_RITUAL_ID,
NEXT_PUBLIC_TACO_DOMAIN: process.env.NEXT_PUBLIC_TACO_DOMAIN,
},
});