-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.mjs
25 lines (24 loc) · 839 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
25
import { createEnv } from "@t3-oss/env-nextjs"
import { z } from "zod"
export const env = createEnv({
client: {
NEXT_PUBLIC_APP_URL: z.string().min(1),
},
server: {
GOOGLE_PROJECT_ID: z.string().min(1),
GOOGLE_SHEETS_ID: z.string().min(1),
GOOGLE_PRIVATE_KEY: z.string().min(1),
GOOGLE_CLIENT_EMAIL: z.string().min(1),
GOOGLE_CLIENT_ID: z.string().min(1),
GOOGLE_TOKEN_URL: z.string().min(1),
},
runtimeEnv: {
NEXT_PUBLIC_APP_URL: process.env.NEXT_PUBLIC_APP_URL,
GOOGLE_PROJECT_ID: process.env.GOOGLE_PROJECT_ID,
GOOGLE_SHEETS_ID: process.env.GOOGLE_SHEETS_ID,
GOOGLE_PRIVATE_KEY: process.env.GOOGLE_PRIVATE_KEY,
GOOGLE_CLIENT_EMAIL: process.env.GOOGLE_CLIENT_EMAIL,
GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID,
GOOGLE_TOKEN_URL: process.env.GOOGLE_TOKEN_URL,
},
})