diff --git a/frontend/pages/api/proxy/[...path.ts b/frontend/pages/api/proxy/[...path.ts deleted file mode 100644 index 81eb594..0000000 --- a/frontend/pages/api/proxy/[...path.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { IncomingMessage, ServerResponse } from "http"; -import httpProxy from "http-proxy"; -const API_URL = process.env.NEXT_PUBLIC_ENV_BASE_URL; // The actual URL of your API -const proxy = httpProxy.createProxyServer(); -// Make sure that we don't parse JSON bodies on this route: -export const config = { - api: { - bodyParser: false, - }, -}; -export default (req: IncomingMessage, res: ServerResponse) => { - proxy.web(req, res, { target: API_URL, changeOrigin: true }); -};