casdoor/web/craco.config.js
2022-04-04 00:09:04 +08:00

54 lines
1.2 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(45,120,213)'},
javascriptEnabled: true,
},
},
},
},
],
};