This commit is contained in:
Vladiysss
2026-02-01 16:05:41 +03:00
parent 7b9f9cf893
commit d6bbcb2c94
258 changed files with 17275 additions and 271541 deletions

19
src/setupProxy.js Normal file
View File

@@ -0,0 +1,19 @@
const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function(app) {
app.use(
'/api',
createProxyMiddleware({
target: 'https://back.fool-stack.ru',
changeOrigin: true,
pathRewrite: { '^/api': '/api' },
})
);
app.use(
'/static/avatars',
createProxyMiddleware({
target: 'http://back.fool-stack.ru',
changeOrigin: true,
})
);
};