#Can't get Netlify Forms to work with Astro

6 messages · Page 1 of 1 (latest)

primal granite
#

I cant get my Netlify form to work with astro.

--- Info I found on this ---
I'm following this post from Netlify: https://www.netlify.com/blog/deploy-an-astro-site-with-forms-serverless-functions-and-redirects/ after seeing this that I needed to deploy the form as a static asset: https://answers.netlify.com/t/netlify-forms-not-working-astro/87364/6.

--- My code ---
This is my Form: https://github.com/brianschnee/portfolio-optimized/blob/main/src/components/Contact.astro

This is where it gets imported: https://github.com/brianschnee/portfolio-optimized/blob/main/src/pages/index.astro

--- Note ---
I'm not sure what I'm doing wrong. I converted the form to a .astro file. There is no JS within the Contact (Form) component. Thanks for any help

primal granite
#

✅ This issue was resolved

I was using the Netlify Adapter which renders everything with SSR. After removing the integration entirely, the form was able to be served as a static asset which is required so that Netlify can generate a helper function https://answers.netlify.com/t/netlify-forms-not-working-astro/87364/6

--- notes for anyone stuck ---

orchid light
ancient galleon
boreal peak
thorn yoke