MutterCorp
MutterCorpNotice · Notícias
Programação·

Astro contact form on Cloudflare, without a form backend

An Astro site with the default static output is a folder of HTML files, and a folder of files can’t receive a POST. So the usual advice is to sign up for a hosted form service. On Cloudflare you don’t have to. A few dozen lines of TypeScript can receive the form on your own domain, check it, and email it to you, on the free plan. This guide covers the two ways to run that code next to an Astro site on Cloudflare, then builds the simpler one step by step: a form that works with JavaScript turned…

Publicado no Notice. Categoria: Programação.

Notícias sobre o mesmo assunto em outras fontes