Connect contact form to Formspree
All checks were successful
/ deploy (push) Successful in 47s

This commit is contained in:
Loyyd 2026-07-10 11:30:52 +02:00
parent a5869d2b83
commit b8cd4f0789
5 changed files with 16 additions and 11 deletions

View file

@ -26,14 +26,15 @@ repository and deploy as usual.
## Contact form
Set `PUBLIC_CONTACT_FORM_ENDPOINT` during the build to make the contact form
send real submissions through a hosted form provider such as Formspree, Basin,
Getform, or a self-hosted endpoint.
The default hosted form endpoint and submissions inbox are configured in
`src/config/contact.ts`. The deployed form sends submissions through Formspree.
Set `PUBLIC_CONTACT_FORM_ENDPOINT` during the build only when overriding the
committed endpoint with another Formspree form or hosted provider.
Optional variables:
- `PUBLIC_CONTACT_RECIPIENTS`: comma-separated mail fallback recipients.
- `PUBLIC_CONTACT_SUBMISSIONS_URL`: admin dashboard URL for form submissions.
- `PUBLIC_CONTACT_SUBMISSIONS_URL`: override for the admin submissions-inbox URL.
If no endpoint is configured, the form falls back to opening the visitor's email
application with the message filled in.