Project setup

This commit is contained in:
Darren Clarke 2022-12-02 10:55:56 +00:00
parent 6c45dec07b
commit 95a21d6f50
29 changed files with 12083 additions and 77 deletions

View file

@ -0,0 +1,18 @@
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,
},
};