Geoloc redirects not working in Net Dev

answered
#1

This is my first netlify community thread… :tada::smile:

First off, Netlify Dev is amazing!

Now it appears redirect rules per country (as in https://www.netlify.com/docs/redirects/#geoip-and-language-based-redirects) is not working in netlify dev.

I wonder if it’s a sensible limitation or a bug?

Thanks.

1 Like
#2

The rules engine works, but we’re not shipping an IP geolocation database with Netlify dev, so we won’t detect the country based on IP. To test the rules you should be able to set an nf_country cookie with the 2 letter country code to simulate the country you want the engine to detect.

2 Likes
#3

Hi Matt and thank you for your prompt answer!

It makes a lot of sense :slight_smile:

1 Like