But, Gatsby 5 won’t work on Netlify at the moment, at least not if you’re planning to use any of the SSR, DSG routes. If you’re planning to use just a static export, you should remove the Gatsby plugin that will probably be auto-installed.
The problem is that, our build system currently does not support build plugins with Node 18 and Gatsby 5 doesn’t support Node 16. For SSR and DSG routes, you would need the Netlify ↔ Gatsby build plugin.