From 3b702a13997d621ea339c03dc85eacc27b90ab3e Mon Sep 17 00:00:00 2001 From: Nathan Cummins Date: Thu, 15 Oct 2026 12:19:04 +1030 Subject: [PATCH] Prevent duplicate form and navbar listeners after page transitions, tidy env, env example --- .env.example | 7 +++++++ src/components/ContactForm.astro | 3 ++- src/components/Navbar.astro | 29 ++++++++++++++++++----------- src/env.d.ts | 2 +- 4 files changed, 28 insertions(+), 13 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..284b616 --- /dev/null +++ b/.env.example @@ -0,0 +1,7 @@ +# Copy to `.env` and fill in real values. Never commit `.env`. +EMAIL_HOST=smtp.example.com +EMAIL_PORT=587 +EMAIL_SECURE=false +EMAIL_USER=user@example.com +EMAIL_PASS=change-me +EMAIL_FROM=noreply@example.com diff --git a/src/components/ContactForm.astro b/src/components/ContactForm.astro index ff6741a..869b126 100644 --- a/src/components/ContactForm.astro +++ b/src/components/ContactForm.astro @@ -77,7 +77,8 @@ const { id: ID = "contact-form" } = Astro.props; diff --git a/src/env.d.ts b/src/env.d.ts index 2979382..0c6b0a7 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1,4 +1,4 @@ -/// +/// /// interface Window {