forked from sl1673495/blogs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
40 lines (36 loc) · 919 Bytes
/
config.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
36
37
38
39
40
const path = require('path');
const mdDir = path.resolve(__dirname, './src/pages');
// Github 密钥
let client_id;
let client_secret;
try {
const githubConfig = require('./.github');
client_id = githubConfig.client_id;
client_secret = githubConfig.client_secret;
} catch (e) {
client_id = '';
client_secret = '';
}
const config = {
mdDir,
// 用于更改标题上的用户信息
username: 'ssh',
// 你的掘金主页
juejin: 'https://juejin.im/user/5b13f11d5188257da1245183',
// 用于同步github的博客
repo: {
// 你的github用户名
owner: 'sl1673495',
// 博客的仓库名 会从这个仓库拉取issues
name: 'blogs',
},
// 可选 如果申请了github Oauth app的话
// 可以填写用于取消github请求限制
client_id,
client_secret,
};
const githubUrl = `https://github.com/${config.repo.owner}`;
module.exports = {
...config,
githubUrl,
};