Next.js Discord

Discord Forum

Whitelist Vercel's IP adress

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Avatar
Northeast Congo LionOP
I have a PWA deployed on Vercel and implementing Geo IP tracking to set a default locale (App language) on my app.

Packages used:

- next-intl (for translation)
- ip-info (api for getting user's geo data)

My Code (attached)
/src/i18n/request.ts
/src/utils/ipInfo.ts

The thing is, when I run this in development mode everything is working as it should, but when I deploy my app it is not working properly Only on server side - if I run it on client it is working fine.

The issue should be connected to the white listings somehow, even tho I have tried to hit the API with publicly available route (without domain or IP restrictions).

Bonus: I have tried adding Vercel's range IP's to IpInfo API and the issue remains.
76.76.21.0/24
76.223.25.96/27

Any help will be of a big value, Thanks in advance!
Image
Image

0 Replies