fix: nextjs proxy warning

This commit is contained in:
Elias Schneider
2023-09-05 14:58:38 +02:00
parent 307d176430
commit e9efbc17bc

View File

@@ -12,7 +12,7 @@ export const config = {
const { apiURL } = getConfig().serverRuntimeConfig;
export default (req: NextApiRequest, res: NextApiResponse) => {
return httpProxyMiddleware(req, res, {
httpProxyMiddleware(req, res, {
headers: {
"X-Forwarded-For": req.socket?.remoteAddress ?? "",
},