mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-10-04 02:10:38 +02:00
fix: nextjs proxy warning
This commit is contained in:
parent
307d176430
commit
e9efbc17bc
@ -12,7 +12,7 @@ export const config = {
|
|||||||
const { apiURL } = getConfig().serverRuntimeConfig;
|
const { apiURL } = getConfig().serverRuntimeConfig;
|
||||||
|
|
||||||
export default (req: NextApiRequest, res: NextApiResponse) => {
|
export default (req: NextApiRequest, res: NextApiResponse) => {
|
||||||
return httpProxyMiddleware(req, res, {
|
httpProxyMiddleware(req, res, {
|
||||||
headers: {
|
headers: {
|
||||||
"X-Forwarded-For": req.socket?.remoteAddress ?? "",
|
"X-Forwarded-For": req.socket?.remoteAddress ?? "",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user