mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
54 lines
1.3 KiB
JavaScript
54 lines
1.3 KiB
JavaScript
const CracoLessPlugin = require("craco-less");
|
|
|
|
module.exports = {
|
|
devServer: {
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:8000",
|
|
changeOrigin: true,
|
|
},
|
|
"/swagger": {
|
|
target: "http://localhost:8000",
|
|
changeOrigin: true,
|
|
},
|
|
"/files": {
|
|
target: "http://localhost:8000",
|
|
changeOrigin: true,
|
|
},
|
|
"/.well-known/openid-configuration": {
|
|
target: "http://localhost:8000",
|
|
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,
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
{
|
|
plugin: CracoLessPlugin,
|
|
options: {
|
|
lessLoaderOptions: {
|
|
lessOptions: {
|
|
modifyVars: {"@primary-color": "rgb(89,54,213)", "@border-radius-base": "5px"},
|
|
javascriptEnabled: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
],
|
|
};
|