18 lines
404 B
TypeScript
18 lines
404 B
TypeScript
import { createProxyMiddleware } from "http-proxy-middleware";
|
|
import { NextApiRequest, NextApiResponse } from "next";
|
|
|
|
const proxy = createProxyMiddleware({
|
|
target: "https://help.cdr.link",
|
|
changeOrigin: true,
|
|
xfwd: false,
|
|
pathRewrite: { '^/zammad': '' }
|
|
});
|
|
|
|
export default proxy;
|
|
|
|
export const config = {
|
|
api: {
|
|
bodyParser: false,
|
|
externalResolver: true,
|
|
},
|
|
};
|