mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-01-15 01:14:27 -05:00
fix: nextjs proxy warning
This commit is contained in:
parent
307d176430
commit
e9efbc17bc
1 changed files with 1 additions and 1 deletions
|
@ -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 ?? "",
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue