Work on reactive design

This commit is contained in:
Davide Passoni
2024-07-01 15:51:43 +02:00
parent b3f8eb96ad
commit 1acb7d6762
8 changed files with 35 additions and 31 deletions

View File

@@ -37,6 +37,7 @@ module.exports = function (configLocation) {
/* Define middleware */
app.use(logger('dev'));
app.use('/olympus', createProxyMiddleware({ target: `http://${backendAddress === '*'? 'localhost': backendAddress}:${config["backend"]["port"]}`, changeOrigin: true }));
app.use('/vite', createProxyMiddleware({ target: `http://localhost:8080/`, ws: true }));
app.use(bodyParser.json({ limit: '50mb' }));
app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
app.use(express.static(path.join(__dirname, 'public')));