-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
env.js
35 lines (30 loc) · 750 Bytes
/
env.js
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
const fs = require('node:fs')
const { parse } = require('dotenv')
const LOCAL_ENV = '.env.local'
let localEnv = {}
if (fs.existsSync(LOCAL_ENV)) {
localEnv = parse(fs.readFileSync(LOCAL_ENV))
}
module.exports = {
DEBUG: '1stg:*',
PARSER_NO_WATCH: true,
TS_NODE_FILES: true,
GITHUB_REPOSITORY_NAME: 'blog',
GITHUB_REPOSITORY_OWNER: 'JounQin',
GITHUB_REPOSITORY_OWNER_TYPE: 'user',
GITHUB_EXCLUDED_LABELS: [
'dependencies',
'feature',
'flag',
'greenkeeper',
'PR: draft',
'PR: merged',
'PR: partially-approved',
'PR: reviewed-approved',
'PR: reviewed-changes-requested',
'PR: unreviewed',
'security',
].join(','),
...localEnv,
NODE_ENV: process.env.NODE_ENV || localEnv.NODE_ENV,
}