14 lines
279 B
TypeScript
14 lines
279 B
TypeScript
|
import { createProxyMiddleware } from 'http-proxy-middleware';
|
||
|
|
||
|
export const config = {
|
||
|
api: {
|
||
|
bodyParser: false,
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export default createProxyMiddleware({
|
||
|
target: "http://api.staging.ente.io",
|
||
|
changeOrigin: true,
|
||
|
pathRewrite: { '^/api': '/' },
|
||
|
});
|