casdoor/web/craco.config.js

54 lines
1.3 KiB
JavaScript
Raw Normal View History

const CracoLessPlugin = require("craco-less");
2021-03-26 23:18:24 +08:00
module.exports = {
devServer: {
proxy: {
"/api": {
target: "http://localhost:8000",
2022-02-04 20:00:40 +08:00
changeOrigin: true,
},
"/swagger": {
target: "http://localhost:8000",
2022-02-04 20:00:40 +08:00
changeOrigin: true,
},
"/files": {
target: "http://localhost:8000",
2022-02-04 20:00:40 +08:00
changeOrigin: true,
},
"/.well-known/openid-configuration": {
target: "http://localhost:8000",
2022-02-04 20:00:40 +08:00
changeOrigin: true,
},
"/cas/serviceValidate": {
target: "http://localhost:8000",
changeOrigin: true,
},
"/cas/proxyValidate": {
target: "http://localhost:8000",
changeOrigin: true,
},
"/cas/proxy": {
target: "http://localhost:8000",
changeOrigin: true,
},
"/cas/validate": {
target: "http://localhost:8000",
changeOrigin: true,
2022-08-06 23:54:56 +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,
},
},
},
},
],
};