-
Notifications
You must be signed in to change notification settings - Fork 14
/
env.mjs
24 lines (23 loc) · 907 Bytes
/
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
import { createEnv } from "@t3-oss/env-nextjs";
import { z } from "zod";
export const env = createEnv({
server: {
TWITTER_CLIENT_ID: z.string().optional(),
TWITTER_CLIENT_SECRET: z.string().optional(),
IPINFO_TOKEN: z.string().optional(),
SCORECHAIN_API_KEY: z.string().optional(),
AML_ALERT_WEBHOOK: z.string().url().optional(),
},
client: {
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID: z.string(),
NEXT_PUBLIC_INTEGRATOR_ID: z.string(),
NEXT_PUBLIC_FRONTEND_URL: z.string(),
NEXT_PUBLIC_AFFILIATE_API_URL: z.string(),
},
experimental__runtimeEnv: {
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID,
NEXT_PUBLIC_INTEGRATOR_ID: process.env.NEXT_PUBLIC_INTEGRATOR_ID,
NEXT_PUBLIC_FRONTEND_URL: process.env.NEXT_PUBLIC_FRONTEND_URL,
NEXT_PUBLIC_AFFILIATE_API_URL: process.env.NEXT_PUBLIC_AFFILIATE_API_URL,
},
});