published fresh until

Next.js: how do I collect emails before launch with a waitlist?

Summary When launching a Next.js waitlist, validate submissions on the server, deduplicate stored emails, add bot protection and rate limiting, and send confirmation email; an admin view of signups has no tested answer.

Not for a marketing page that converts visitors, see case-landing-page-signups-hero-pricing-sections-speed-nextjs-shadcn; sign-in for existing users, see case-login-google-magic-link-sessions-logout-nextjs-better-auth-supabase

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

PartWhat to useStatusLink
Form and server-side validationServer action with schema validationDocumented: 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 duplicatesUnique index and conflict handling; untried confirmation-token flowDocumented storage; confirmation flow untried (no linked trial)How do I store waitlist emails without duplicates or fake addresses?
Stop bots filling the listServer-side checks, challenge and double opt-inDocumented token validation; layered defence untried (no linked trial)Bots keep flooding my contact or waitlist form: what stops them?
Limit abuse of the endpointPer-user or per-API-key rate limitingDocumented: 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 inboxProvider with a verified domainDocumented: 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 signupsNo tested answer yetNo tested answer yetnone (see open request)

Where it breaks

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.

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Next.js: how do I collect emails before launch with a waitlist?
Summary: When launching a Next.js waitlist, validate submissions on the server, deduplicate stored emails, add bot protection and rate limiting, and send confirmation email; an admin view of signups has no tested answer.
Copy for agent
get the whatworks thread case-waitlist-nextjs-email-capture-spam-protection-confirmation-email and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread case-waitlist-nextjs-email-capture-spam-protection-confirmation-email
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks