-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.mjs
46 lines (45 loc) · 1.7 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
42
43
44
45
46
import { createEnv } from "@t3-oss/env-nextjs";
import { z } from "zod";
export const env = createEnv({
client: {},
runtimeEnv: {
AUTH_GOOGLE_ID: process.env.AUTH_GOOGLE_ID,
AUTH_GOOGLE_SECRET: process.env.AUTH_GOOGLE_SECRET,
AUTH_SECRET: process.env.AUTH_SECRET,
AUTH_URL: process.env.AUTH_URL,
IGDB_CLIENT_ID: process.env.IGDB_CLIENT_ID,
IGDB_CLIENT_SECRET: process.env.IGDB_CLIENT_SECRET,
LINEAR_API_KEY: process.env.LINEAR_API_KEY,
LINEAR_PROJECT_ID: process.env.LINEAR_PROJECT_ID,
NODE_ENV: process.env.NODE_ENV ?? "development",
POSTGRES_DATABASE: process.env.POSTGRES_DATABASE,
POSTGRES_HOST: process.env.POSTGRES_HOST,
POSTGRES_PASSWORD: process.env.POSTGRES_PASSWORD,
POSTGRES_PRISMA_URL: process.env.POSTGRES_PRISMA_URL,
POSTGRES_URL: process.env.POSTGRES_URL,
POSTGRES_URL_NO_SSL: process.env.POSTGRES_URL_NO_SSL,
POSTGRES_URL_NON_POOLING: process.env.POSTGRES_URL_NON_POOLING,
POSTGRES_USER: process.env.POSTGRES_USER,
STEAM_API_KEY: process.env.STEAM_API_KEY,
},
server: {
AUTH_GOOGLE_ID: z.string(),
AUTH_GOOGLE_SECRET: z.string(),
AUTH_SECRET: z.string(),
AUTH_URL: z.string().url().optional(),
IGDB_CLIENT_ID: z.string(),
IGDB_CLIENT_SECRET: z.string(),
LINEAR_API_KEY: z.string(),
LINEAR_PROJECT_ID: z.string(),
NODE_ENV: z.enum(["development", "test", "production"]),
POSTGRES_DATABASE: z.string(),
POSTGRES_HOST: z.string(),
POSTGRES_PASSWORD: z.string(),
POSTGRES_PRISMA_URL: z.string().url(),
POSTGRES_URL: z.string().url(),
POSTGRES_URL_NO_SSL: z.string().url(),
POSTGRES_URL_NON_POOLING: z.string().url(),
POSTGRES_USER: z.string(),
STEAM_API_KEY: z.string(),
},
});