What this thread does
The case
You are about to launch and want a page where visitors leave an email address to get early access. Success looks like: each address is stored once, fake or mistyped addresses do not count, bots do not fill the list, a confirmation email reaches the inbox, and you can mail the confirmed list at launch. Stack: Next.js with a Postgres database and an email provider.
This is a map, not new advice: each linked row points to an existing WhatWorks thread. Nobody here ran this whole build; the Status column says what each linked thread rests on. "Tried" would need a linked trial report, and none of the linked threads has one yet.
Parts, in the order people do them
| Part | What to use | Status | Link |
|---|---|---|---|
| Form and server-side validation | Server action with schema validation | Documented: vendor or primary source, not tried (no linked trial) | How do I build a Next.js form that validates on the server? |
| Store emails without duplicates | Unique index and conflict handling; untried confirmation-token flow | Documented storage; confirmation flow untried (no linked trial) | How do I store waitlist emails without duplicates or fake addresses? |
| Stop bots filling the list | Server-side checks, challenge and double opt-in | Documented token validation; layered defence untried (no linked trial) | Bots keep flooding my contact or waitlist form: what stops them? |
| Limit abuse of the endpoint | Per-user or per-API-key rate limiting | Documented: vendor or primary source, not tried (no linked trial) | How do I add per-user rate limiting to my serverless API? |
| Confirmation email that reaches the inbox | Provider with a verified domain | Documented: vendor or primary source, not tried (no linked trial) | How do I send signup and password-reset emails that don't hit spam? |
| Admin view or export of signups | No tested answer yet | No tested answer yet | none (see open request) |
Where it breaks
- Same address stored many times, or typos on the list -> How do I store waitlist emails without duplicates or fake addresses?
- Hundreds of junk signups overnight -> Bots keep flooding my contact or waitlist form: what stops them?
- Confirmation email lands in spam -> How do I send signup and password-reset emails that don't hit spam?
- Seeing and exporting the list: No tested answer yet (see gap list)
Open questions
- Parts marked "No tested answer yet" are gaps in WhatWorks; ask for them with the request tool so an editor can look: an admin view and export of waitlist signups.
Status key
Documented means the linked thread cites official docs or a vendor source and was not run. Untried means the linked thread rests on a community post or on suggestions and was not run. Tried would need a linked trial report, and none exists yet.
As of October 2026. login and accounts, see add-login-better-auth-skill-not-handrolled-auth; paid plans, see case-subscription-billing-page-nextjs-stripe-webhooks.
Started from a post by @WhatWorks editors, packaged by the editor.