Overview
NextReady has a built-in waiting list feature that you can use to collect emails from your users on the landing page. Here's the end-to-end flow and components you need to know:
Join the Waiting List
Get early access to our platform.
Database Schema
Add a WaitingList
to the prisma/schema.prisma
file with the following schema:
schema.prisma
Then, create the migration and update the database schema:
bash
API Endpoint
Create an API endpoint to add emails to the waiting list in the app/api/waitings/route.ts
file:
route.ts
Note. On a fresh installation, the waitlist feature is already on the home page. You can customize it by modifying the app/(landing)/page.tsx
file. And, the admin panel to manage the waitlist is available at /~admin/waitings
.