Form not being recognised during gatsby build - 404 response in production

This is the starting place for forms debugging questions:

Looking at the site in question, it looks like there is no form in the HTML until the javascript is run.

This means there is no pure “HTML only” form. That HTML form is a prerequisite for our Forms feature to work.

The fastest way to resolve this is to allow the form to render in the browser and then copy/paste that form HTML into a new file. Then save that HTML file and include it as a static file in the publish directory.

You don’t need to submit forms using the HTML file. However, the pure HTML form must exist somewhere in the raw files of the site (before javascript is run) for our system to create the backend forms handler.

If there are other questions about this, please let us know.