Skip to content

Commit a22f7ac

Browse files
调整gitee资源的域名为 raw.giteeusercontent.com
1 parent c320866 commit a22f7ac

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/core/src/config/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const defaultConfig = {
2323
remoteConfig: {
2424
enabled: true,
2525
// 共享远程配置地址
26-
url: 'https://gitee.com/wangliang181230/dev-sidecar-config/raw/main/remote_config.json',
26+
url: 'https://raw.giteeusercontent.com/wangliang181230/dev-sidecar-config/raw/main/remote_config.json',
2727
// 个人远程配置地址
2828
personalUrl: '',
2929
},
@@ -108,9 +108,9 @@ const defaultConfig = {
108108
},
109109
'^(/[\\w-.]+){2,}/?(\\?.*)?$': {
110110
// 篡改猴插件地址,以下是高速镜像地址
111-
tampermonkeyScript: 'https://gitee.com/wangliang181230/dev-sidecar-config/raw/main/tampermonkey.js',
111+
tampermonkeyScript: 'https://raw.giteeusercontent.com/wangliang181230/dev-sidecar-config/raw/main/tampermonkey.js',
112112
// Github油猴脚本地址,以下是高速镜像地址
113-
script: 'https://gitee.com/wangliang181230/dev-sidecar-config/raw/main/GithubEnhanced-High-Speed-Download.user.js',
113+
script: 'https://raw.giteeusercontent.com/wangliang181230/dev-sidecar-config/raw/main/GithubEnhanced-High-Speed-Download.user.js',
114114
remark: '注:上面所使用的脚本地址,为高速镜像地址。',
115115
desc: '油猴脚本:高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载、添加 git clone 命令',
116116
},

packages/core/src/config/remote_config.json5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"intercepts": {
1616
"github.com": {
1717
"^(/[\\w-.]+){2,}/?(\\?.*)?$": {
18-
"tampermonkeyScript": "https://gitee.com/wangliang181230/dev-sidecar-config/raw/main/tampermonkey.js",
19-
"script": "https://gitee.com/wangliang181230/dev-sidecar-config/raw/main/GithubEnhanced-High-Speed-Download.user.js"
18+
"tampermonkeyScript": "https://raw.giteeusercontent.com/wangliang181230/dev-sidecar-config/raw/main/tampermonkey.js",
19+
"script": "https://raw.giteeusercontent.com/wangliang181230/dev-sidecar-config/raw/main/GithubEnhanced-High-Speed-Download.user.js"
2020
},
2121
"^(/[^/]+){2}/releases/download/.*$": {
2222
"redirect": "ghp.ci/https://github.com",

packages/core/test/requestTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const request = require('request')
33

44
const options = {
55
url: 'https://raw.githubusercontent.com/docmirror/dev-sidecar/refs/heads/master/packages/core/src/config/remote_config.json5',
6-
// url: 'https://gitee.com/wangliang181230/dev-sidecar-config/raw/main/remote_config.json',
6+
// url: 'https://raw.giteeusercontent.com/wangliang181230/dev-sidecar-config/raw/main/remote_config.json',
77
servername: 'baidu.com',
88
agent: new HttpsAgent({
99
keepAlive: true,

0 commit comments

Comments
 (0)