Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middleware's request.ip doesn't provide the client's IP #163

Open
FearlessSlug opened this issue Jul 24, 2023 · 1 comment
Open

Middleware's request.ip doesn't provide the client's IP #163

FearlessSlug opened this issue Jul 24, 2023 · 1 comment

Comments

@FearlessSlug
Copy link

In Vercel hosted NextJS app in middleware.ts you can get the client's IP from request.ip (might also be in route.ts file in the app directory but I'm not sure and haven't tested there), but in SST deployed NextJS app there's nothing in the request.ip.

@masterbater
Copy link

request.remoteAddress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants