From 7f4bb2f1841e6bb4bbf4a05b1a8ff76a6a29e059 Mon Sep 17 00:00:00 2001 From: Javaxman Date: Wed, 29 Jul 2026 17:34:26 +0200 Subject: [PATCH] Elimina il falso successo del form contatti e mostra conferma invio. (#25) Rimuove l honeypot autofillato, rifiuta mode non-live in produzione e TO su pro@nexstudio.ai. Co-authored-by: Cursor --- .env.example | 6 +++--- src/components/ContactFormInline.astro | 20 ++++++++------------ src/data/home/cta.ts | 3 +++ src/pages/api/contact.ts | 17 +++++++++-------- src/scripts/nx-contact-form.ts | 26 +++++++++++++++++++++----- wrangler.jsonc | 2 +- 6 files changed, 45 insertions(+), 29 deletions(-) diff --git a/.env.example b/.env.example index 8b86c78..cde4f73 100644 --- a/.env.example +++ b/.env.example @@ -6,8 +6,8 @@ PUBLIC_SITE_URL=http://localhost:4321 CONTACT_FORM_MODE=dev CONTACT_FORM_FROM_EMAIL=no-reply@nexstudio.ai -CONTACT_FORM_TO_EMAIL=javaxman69@gmail.com -CONTACT_FORM_TO_EMAIL_INFO=javaxman69@gmail.com +CONTACT_FORM_TO_EMAIL=pro@nexstudio.ai +CONTACT_FORM_TO_EMAIL_INFO= CONTACT_FORM_TO_EMAIL_PRIVACY= CONTACT_FORM_TO_EMAIL_CAREERS= CONTACT_TURNSTILE_SECRET_KEY= @@ -16,6 +16,6 @@ CONTACT_TURNSTILE_SECRET_KEY= # In produzione: NEWSLETTER_MODE=live (oppure CONTACT_FORM_MODE=live come fallback) NEWSLETTER_MODE=dev NEWSLETTER_FROM_EMAIL=no-reply@nexstudio.ai -NEWSLETTER_NOTIFY_TO_EMAIL=javaxman69@gmail.com +NEWSLETTER_NOTIFY_TO_EMAIL=pro@nexstudio.ai NEWSLETTER_ADMIN_TOKEN= NEWSLETTER_TURNSTILE_SECRET_KEY= diff --git a/src/components/ContactFormInline.astro b/src/components/ContactFormInline.astro index 76a9f53..2021c60 100644 --- a/src/components/ContactFormInline.astro +++ b/src/components/ContactFormInline.astro @@ -19,6 +19,7 @@ const model = { fieldDepartment: cf.fieldDepartment, fieldEmail: cf.fieldEmail, fieldMessage: cf.fieldMessage, + successMessage: cf.successMessage, turnstileError: cf.errors.turnstile, configError: cf.errors.config, mailtoFallbackSubject: cf.mailtoFallbackSubject, @@ -112,18 +113,6 @@ const fieldClass = ) : null } - { - hasFormspree ? ( - - ) : null - }
+ +