Aggiunge newsletter custom con D1, double opt-in e invio campagne.

Attiva il form footer, API subscribe/confirm/unsubscribe e endpoint admin protetti, riusando Resend per le email.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Javaxman
2026-07-28 23:23:19 +02:00
parent 9a8566a3f5
commit 7aff1abcfb
27 changed files with 1008 additions and 18 deletions

View File

@ -12,7 +12,9 @@
"deploy:cf": "npm run build && wrangler deploy --config dist/server/wrangler.json",
"preview": "astro preview",
"astro": "astro",
"generate-types": "wrangler types"
"generate-types": "wrangler types",
"db:migrate:local": "wrangler d1 migrations apply nexstudio-newsletter --local",
"db:migrate:remote": "wrangler d1 migrations apply nexstudio-newsletter --remote"
},
"dependencies": {
"@astrojs/alpinejs": "^0.5.0",