2022-07-10 15:45:55 +08:00
|
|
|
const CracoLessPlugin = require("craco-less");
|
2021-03-26 23:18:24 +08:00
|
|
|
|
|
|
|
module.exports = {
|
2022-01-29 21:52:04 +08:00
|
|
|
devServer: {
|
|
|
|
proxy: {
|
2022-07-10 15:45:55 +08:00
|
|
|
"/api": {
|
|
|
|
target: "http://localhost:8000",
|
2022-02-04 20:00:40 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
},
|
2022-07-10 15:45:55 +08:00
|
|
|
"/swagger": {
|
|
|
|
target: "http://localhost:8000",
|
2022-02-04 20:00:40 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
},
|
2022-07-10 15:45:55 +08:00
|
|
|
"/files": {
|
|
|
|
target: "http://localhost:8000",
|
2022-02-04 20:00:40 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
},
|
2022-07-10 15:45:55 +08:00
|
|
|
"/.well-known/openid-configuration": {
|
|
|
|
target: "http://localhost:8000",
|
2022-02-04 20:00:40 +08:00
|
|
|
changeOrigin: true,
|
2022-04-04 00:09:04 +08:00
|
|
|
},
|
2022-07-10 15:45:55 +08:00
|
|
|
"/cas/serviceValidate": {
|
|
|
|
target: "http://localhost:8000",
|
2022-04-04 00:09:04 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
},
|
2022-07-10 15:45:55 +08:00
|
|
|
"/cas/proxyValidate": {
|
|
|
|
target: "http://localhost:8000",
|
2022-04-04 00:09:04 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
},
|
2022-07-10 15:45:55 +08:00
|
|
|
"/cas/proxy": {
|
|
|
|
target: "http://localhost:8000",
|
2022-04-04 00:09:04 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
},
|
2022-07-10 15:45:55 +08:00
|
|
|
"/cas/validate": {
|
|
|
|
target: "http://localhost:8000",
|
2022-04-04 00:09:04 +08:00
|
|
|
changeOrigin: true,
|
2022-08-06 23:54:56 +08:00
|
|
|
},
|
2022-01-29 21:52:04 +08:00
|
|
|
},
|
|
|
|
},
|
2021-03-26 23:18:24 +08:00
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
plugin: CracoLessPlugin,
|
|
|
|
options: {
|
|
|
|
lessLoaderOptions: {
|
|
|
|
lessOptions: {
|
2022-10-03 17:43:19 +08:00
|
|
|
modifyVars: {"@primary-color": "rgb(89,54,213)", "@border-radius-base": "5px"},
|
2021-03-26 23:18:24 +08:00
|
|
|
javascriptEnabled: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|