forked from giscus/giscus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.ts
More file actions
31 lines (28 loc) · 990 Bytes
/
Copy pathvariables.ts
File metadata and controls
31 lines (28 loc) · 990 Bytes
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
export const env = {
app_id: process.env.GITHUB_APP_ID,
client_id: process.env.GITHUB_CLIENT_ID,
client_secret: process.env.GITHUB_CLIENT_SECRET,
installation_id: process.env.GITHUB_INSTALLATION_ID,
token: process.env.GITHUB_TOKEN,
private_key: process.env.GITHUB_PRIVATE_KEY,
encryption_password: process.env.ENCRYPTION_PASSWORD,
app_host: process.env.NEXT_PUBLIC_GISCUS_APP_HOST as `https://${string}`,
origins: JSON.parse(process.env.ORIGINS || '[]') as string[],
origins_regex: JSON.parse(process.env.ORIGINS_REGEX || '[]') as string[],
} as const;
export const availableThemes = [
'light',
'light_high_contrast',
'light_protanopia',
'light_tritanopia',
'dark',
'dark_high_contrast',
'dark_protanopia',
'dark_tritanopia',
'dark_dimmed',
'transparent_dark',
'preferred_color_scheme',
'custom',
] as const;
export type AvailableTheme = typeof availableThemes[number];
export type Theme = AvailableTheme | `/${string}` | `https://${string}`;