Branche le formulaire de contact sur Resend
Deploy to VPS / deploy (push) Has been cancelled

- Envoi reel via le SDK Resend dans app/actions/contact.ts (avec gestion d'erreur)
- Cles/adresses lues depuis l'env (RESEND_API_KEY, CONTACT_TO_EMAIL, CONTACT_FROM_EMAIL)
- Ajout de resend en dependance + lock synchronise
- .env.example documente la config (autorise dans .gitignore)
- README + TODO a jour

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-23 08:38:56 +02:00
parent 0c88206a23
commit 0cd61f2a12
7 changed files with 121 additions and 46 deletions
+7 -1
View File
@@ -42,8 +42,14 @@ scripts/ One-off build scripts (favicon generation)
## Configuration
Copy `.env.example` to `.env.local` and fill in the values.
- **Site URL** — set `NEXT_PUBLIC_SITE_URL` per environment (used by metadata, sitemap,
robots, RSS and JSON-LD). Defaults to `https://highlandgamesstudio.com` — see `lib/site.ts`.
- **Contact form (Resend)** — the contact form sends email via [Resend](https://resend.com).
Set `RESEND_API_KEY`, `CONTACT_TO_EMAIL` (who receives messages) and `CONTACT_FROM_EMAIL`
(sender, must be on a domain verified in Resend). Without these, the form returns a
friendly error instead of sending. See `app/actions/contact.ts`.
## Adding a devblog post
@@ -70,5 +76,5 @@ PM2 process. Requires the `SSH_*` repository secrets.
## Known TODOs
- Wire the contact and newsletter forms to a real email provider (currently log-only).
- Wire the newsletter form to a real email provider (contact form now uses Resend).
- Replace placeholder content (game, team members, social links).