Replace CRA proxy config with vite's proxy config
This commit is contained in:
@@ -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,
|
||||
})
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user