Currently, calling formData seems to do nothing..
Workaround:
if (Astro.request.method === "POST") {
const text = await Astro.request.text()
const inputs = text
.split("&").map((row) => [row.split("=")[0], decodeURIComponent(row.split("=")[1])])
const inputJSON = Object.fromEntries(inputs)
// now use inputJSON as an object with { inputName: inputValue }
console.log(inputJSON)
}
Please keep in mind that this is a very basic approach to handling form data and many, many edge cases won't work (eg file uploads)