casdoor/web/craco.config.js

54 lines
1.2 KiB
JavaScript
Raw Normal View History

2021-03-26 23:18:24 +08:00
const CracoLessPlugin = require('craco-less');
module.exports = {
devServer: {
proxy: {
2022-02-04 20:00:40 +08:00
'/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,
2022-02-04 20:00:40 +08:00
}
},
},
2021-03-26 23:18:24 +08:00
plugins: [
{
plugin: CracoLessPlugin,
options: {
lessLoaderOptions: {
lessOptions: {
2022-02-04 20:00:40 +08:00
modifyVars: {'@primary-color': 'rgb(45,120,213)'},
2021-03-26 23:18:24 +08:00
javascriptEnabled: true,
},
},
},
},
],
};