mirror of
https://github.com/certd/certd.git
synced 2026-04-30 01:07:28 +08:00
chore: 1
This commit is contained in:
@@ -25,9 +25,9 @@ export default ({ command, mode }) => {
|
|||||||
// if (mode.startsWith("dev")) {
|
// if (mode.startsWith("dev")) {
|
||||||
// base = "./";
|
// base = "./";
|
||||||
// }
|
// }
|
||||||
let proxyTarget = "";
|
let proxyTarget: string = "https://127.0.0.1:7002";
|
||||||
if (mode === "remote") {
|
if (mode === "remote") {
|
||||||
proxyTarget = "http://yfy.docmirror.cn:7001";
|
proxyTarget = "https://yfy.docmirror.cn:7002";
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
base: base,
|
base: base,
|
||||||
@@ -93,7 +93,7 @@ export default ({ command, mode }) => {
|
|||||||
// with options
|
// with options
|
||||||
"/api": {
|
"/api": {
|
||||||
//配套后端 https://github.com/fast-crud/fs-server-js
|
//配套后端 https://github.com/fast-crud/fs-server-js
|
||||||
target: proxyTarget ?? "https://127.0.0.1:7002",
|
target: proxyTarget,
|
||||||
//忽略证书
|
//忽略证书
|
||||||
agent: new https.Agent({ rejectUnauthorized: false }),
|
agent: new https.Agent({ rejectUnauthorized: false }),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user