1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-04 23:10:13 +01:00

fix: nextjs proxy warning

This commit is contained in:
Elias Schneider 2023-09-05 14:58:38 +02:00
parent 307d176430
commit e9efbc17bc
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C

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 ?? "",
},