Skip to content

Commit

Permalink
fix: nextjs proxy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith404 committed Sep 5, 2023
1 parent 307d176 commit e9efbc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/api/[...all].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? "",
},
Expand Down

0 comments on commit e9efbc1

Please sign in to comment.