-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.mjs
41 lines (40 loc) · 2.2 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
36
37
38
39
40
41
import { createEnv } from '@t3-oss/env-nextjs'
import { z } from 'zod'
export const env = createEnv({
server: {
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: z.string().min(1),
CLERK_SECRET_KEY: z.string().min(1),
NEXT_PUBLIC_CLERK_SIGN_IN_URL: z.string().min(1),
NEXT_PUBLIC_CLERK_SIGN_UP_URL: z.string().min(1),
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: z.string().min(1),
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: z.string().min(1),
NEXT_PUBLIC_FIREBASE_API_KEY: z.string().min(1),
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: z.string().min(1),
NEXT_PUBLIC_FIREBASE_PROJECT_ID: z.string().min(1),
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: z.string().min(1),
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: z.string().min(1),
NEXT_PUBLIC_FIREBASE_APP_ID: z.string().min(1),
NEXT_PUBLIC_FIREBASE_DATABASE_URL: z.string().min(1),
//NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: z.string().min(1)
},
client: {
NEXT_PUBLIC_APP_URL: z.string().min(1)
},
runtimeEnv: {
NEXT_PUBLIC_APP_URL: process.env.NEXT_PUBLIC_APP_URL,
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY,
CLERK_SECRET_KEY: process.env.CLERK_SECRET_KEY,
NEXT_PUBLIC_CLERK_SIGN_IN_URL: process.env.NEXT_PUBLIC_CLERK_SIGN_IN_URL,
NEXT_PUBLIC_CLERK_SIGN_UP_URL: process.env.NEXT_PUBLIC_CLERK_SIGN_UP_URL,
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: process.env.NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL,
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: process.env.NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL,
NEXT_PUBLIC_FIREBASE_API_KEY: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,
NEXT_PUBLIC_FIREBASE_PROJECT_ID: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: process.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET,
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: process.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID,
NEXT_PUBLIC_FIREBASE_APP_ID: process.env.NEXT_PUBLIC_FIREBASE_APP_ID,
NEXT_PUBLIC_FIREBASE_DATABASE_URL: process.env.NEXT_PUBLIC_FIREBASE_DATABASE_URL,
//NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID: process.env.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID
},
})