Add newsletter signup with listmonk - #72
Merged
Merged
Conversation
Adds a footer subscribe form backed by two Astro API routes: subscribe (adds to the Ultraviolet list and sends a branded welcome email) and unsubscribe (listmonk has no built-in unsubscribe page outside of campaign sends, so this is a real page instead of relying on listmonk). Routes through a dedicated SMTP server and a list-scoped listmonk API user so this stays isolated from other products on the same instance.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
uvc-website | 0fd436d | Commit Preview URL Branch Preview URL |
Jul 24 2026, 09:46 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/subscribeAstro API route (export const prerender = false) that adds the subscriber to a dedicated "Ultraviolet Newsletter" list in listmonk and fires a branded welcome email./unsubscribe, a real page rather than an API-only endpoint, since listmonk doesn't provide a working unsubscribe link outside of campaign sends — the welcome email links here instead.info@ultraviolet.rsand a list-scoped listmonk API user (uvc-website-tx), so this stays isolated from other products sharing the same listmonk instance.Test plan
pnpm check,pnpm lint,pnpm format:check,pnpm buildall pass locallyastro dev— confirmed the subscriber lands in listmonk and the welcome email send succeeds with no errors/unsubscribe— confirmed the subscriber is removed from the list, and that re-visiting the same link is idempotentuvc-website-txAPI user cannot see or modify subscribers on other lists in the same listmonk instance🤖 Generated with Claude Code