-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
34 lines (33 loc) · 1022 Bytes
/
config.ts
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
interface Config {
// APIのホスト
// undefined の場合は相対パスになる
apiHost?: string;
// APIのパスのプレフィックス
apiPathPrefix?: string;
apiCors?: boolean;
loginStateCookieName: string;
emailCodeLength: number;
mode: 'development' | 'production' | 'test';
title: string;
revision: string;
branchName?: string;
reCaptchaKey?: string;
gaTracingId?: string;
}
export const config: Config = {
apiHost: process.env.NEXT_PUBLIC_API_HOST,
apiPathPrefix: '/api/v2',
apiCors: false,
loginStateCookieName: 'oreore-me-login-state',
emailCodeLength: 6,
mode: process.env.NODE_ENV ?? 'development',
title: `${
process.env.NEXT_PUBLIC_PUBLICATION_TYPE
? `${process.env.NEXT_PUBLIC_PUBLICATION_TYPE}.`
: ''
}oreore.me`,
revision: process.env.NEXT_PUBLIC_REVISION ?? '-',
branchName: process.env.NEXT_PUBLIC_BRANCH_NAME ?? '-',
reCaptchaKey: process.env.NEXT_PUBLIC_RE_CAPTCHA,
gaTracingId: process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID,
};