-
Notifications
You must be signed in to change notification settings - Fork 1
/
env.ts
27 lines (26 loc) · 873 Bytes
/
env.ts
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
import { createEnv } from '@t3-oss/env-nextjs'
import { z } from 'zod'
export const env = createEnv({
server: {
APPWRITE_ENDPOINT: z.string().min(1),
APPWRITE_PROJECT_ID: z.string().min(1),
APPWRITE_API_KEY: z.string().min(1),
CRON_SECRET: z.string().min(1),
DEVTO_DOCUMENT_ID: z.string().min(1),
GITHUB_DOCUMENT_ID: z.string().min(1),
GITHUB_TOKEN: z.string().min(1),
TWITTER_ACCESS_TOKEN: z.string().min(1),
TWITTER_ACCESS_TOKEN_SECRET: z.string().min(1),
TWITTER_CONSUMER_KEY: z.string().min(1),
TWITTER_CONSUMER_SECRET: z.string().min(1),
VERCEL_ENV: z.string().min(1),
X_DOCUMENT_ID: z.string().min(1),
},
client: {
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: z.string().min(1),
},
experimental__runtimeEnv: {
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME:
process.env.NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME,
},
})