Remove trailing slash redirect for Gatsby + Gatsby Cloud + Netlify website

I finally got this working.

Thanks to these comments:

So something very weird is going on with the netlify UI.
The only way to skip the redirect is to ‘Disable asset optimization’ but also explicitly check all the boxes except for ‘Pretty URLs’:

Simply checking ‘Disable asset optimization’ without checking the other boxes does not work, the redirect still occurs.

The problem is unrelated to whether I build from Gatsby Cloud or Netlify directly.
I got all my sites working correctly as soon as I configured this.

3 Likes