I am interested in createRedirect actions.
I would like to utilize this to redirect user in specific country with particular language, and give english for unspecified country.
createRedirect({
fromPath: `/`,
toPath: `/id/`,
conditions: {
country: "id",
},
});
createRedirect({
fromPath: `/`,
toPath: `/en/`,
});
I use gatsby-plugin-meta-redirect to make the redirect possible.
I then deploy the preview through netlify. When I tested for non id
country using VPN, it still redirect to /id/
instead of /en/
.
The question is How to make a default redirect for non specified country?