How do you handle redirects in Gatsby/JAMstack?
This is posted on behalf of a user.
A few of our clients are "redirect happy" and have quite a bit of them in the URL Redirections section for instances set up to use the ASP.NET sync model. Now that the server is out of the picture on dealing with requests, what's the approach with JAMStack and redirects?
I've found a few options:
- Cloudflare with Workers that handle the redirect on requests.
- Netlify has a _redirects file. That file could be generated by Gatsby based on redirects set in Agility.
- Azure CDN. The redirects would have to be defined in Azure, instead of Agility, which makes it a no for me.
- WebApp/VM hosting: Not really JAMStack to host the site on a server!
Depending on what a client is ok with paying for; I lean towards the Cloudflare or Netlify options. Is there another and/or suggested an option that your team has discovered?