Replace CRA proxy config with vite's proxy config

This commit is contained in:
ZauberNerd
2023-07-08 10:57:34 +02:00
parent a3da33d824
commit 4b91a1972b
3 changed files with 9 additions and 15 deletions

View File

@@ -1,14 +0,0 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-undef */
const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function (app) {
app.use(
'/chatapi',
createProxyMiddleware({
target: 'http://localhost:3001',
secure: false,
changeOrigin: true,
})
);
};