1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- 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,
- },
- },
- },
- },
- ],
- };
|