Files
workavia-drive/tdrive/frontend/src/setupProxy.js
T
Anton Shepilov fddd3b4ebd 🌐Translations for the latest features (#78)
* 🌐Translations for the latest features
Also:
  - Rename “Home” to Shared drive
  - Hide banner with suggestion of downloading desktop app
  - Fix Upload button on main screen
  - Add separate buttons for the manage access and share by link
2023-06-16 14:15:48 +02:00

20 lines
388 B
JavaScript

const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function (app) {
app.use(
'/internal',
createProxyMiddleware({
target: 'http://localhost:4000',
onError: (err, req, resp) => {
console.log(err);
},
}),
);
app.use(
'/__',
createProxyMiddleware({
target: 'http://localhost:4000',
}),
);
};