-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.ts
More file actions
32 lines (26 loc) · 1.02 KB
/
env.ts
File metadata and controls
32 lines (26 loc) · 1.02 KB
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
import { ENV } from '@01edu/api/env'
export const PORT = Number(ENV('PORT', '2119'))
export const PICTURE_DIR = ENV('PICTURE_DIR', './.picture')
export const GOOGLE_CLIENT_ID = ENV('GOOGLE_CLIENT_ID')
export const CLIENT_SECRET = ENV('CLIENT_SECRET')
export const REDIRECT_URI = ENV('REDIRECT_URI')
export const ORIGIN = new URL(REDIRECT_URI).origin
export const SECRET = ENV(
'SECRET',
'iUokBru8WPSMAuMspijlt7F-Cnpqyg84F36b1G681h0',
)
export const CLICKHOUSE_HOST = ENV('CLICKHOUSE_HOST')
export const CLICKHOUSE_USER = ENV('CLICKHOUSE_USER')
export const CLICKHOUSE_PASSWORD = ENV('CLICKHOUSE_PASSWORD')
// Optional interval (ms) for refreshing external SQL database schemas
// Defaults to 24 hours
export const DB_SCHEMA_REFRESH_MS = Number(
ENV('DB_SCHEMA_REFRESH_MS', `${24 * 60 * 60 * 1000}`),
)
export const STORE_URL = ENV('STORE_URL')
export const STORE_SECRET = ENV('STORE_SECRET')
export const GEMINI_API_KEY = ENV('GEMINI_API_KEY')
export const GEMINI_MODEL = ENV(
'GEMINI_MODEL',
'gemini-3.1-flash-lite-preview',
)