You've already forked dev-sidecar
mirror of
https://github.com/docmirror/dev-sidecar.git
synced 2025-11-26 14:10:40 +08:00
perf: 替换掉不稳定的assets.fastgit,增加yarn registry开关,修复一些bug
This commit is contained in:
20
packages/core/test/configTest.js
Normal file
20
packages/core/test/configTest.js
Normal file
@@ -0,0 +1,20 @@
|
||||
const config = require('../src/config')
|
||||
|
||||
config.set({
|
||||
server: {
|
||||
intercepts: {
|
||||
'github1.githubassets.com': {
|
||||
'.*': {
|
||||
redirect: 'assets.fastgit.org',
|
||||
test: 'https://github.githubassets.com/favicons/favicon.svg',
|
||||
desc: '静态资源加速'
|
||||
}
|
||||
},
|
||||
'github.githubassets.com': null
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
console.log(config.get())
|
||||
|
||||
config.reload()
|
||||
Reference in New Issue
Block a user