Skip to content
This repository was archived by the owner on Jun 29, 2025. It is now read-only.

Commit e9efbc1

Browse files
committed
fix: nextjs proxy warning
1 parent 307d176 commit e9efbc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/pages/api/[...all].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const config = {
1212
const { apiURL } = getConfig().serverRuntimeConfig;
1313

1414
export default (req: NextApiRequest, res: NextApiResponse) => {
15-
return httpProxyMiddleware(req, res, {
15+
httpProxyMiddleware(req, res, {
1616
headers: {
1717
"X-Forwarded-For": req.socket?.remoteAddress ?? "",
1818
},

0 commit comments

Comments
 (0)