POST /api/waitlist validates the email and stores the signupPASSapp/api/waitlist/route.ts checks the email with a schema before the insert.app/api/waitlist/route.ts
Duplicate emails are rejected with a 409PASSThe route catches the unique constraint error and returns status 409.
Automated tests cover the success and failure pathsFAILtests/waitlist.test.ts covers the success path only; no duplicate-email test.