Million Dollar YearGet the free app

How to build a waitlist funnel with Next.js, Vercel and Notion

By Max Warnault · 7 May 2026 · 6 min read

In short

To build a waitlist funnel fast, deploy Vercel's Next.js waitlist template with Notion as the CMS. Fill in four sets of environment variables: a Notion integration secret, a Notion database ID, a Resend API key and an Upstash Redis URL and token. Connect your Cloudflare domain with Vercel's auto configure. Then test the form. If signups fail, check that the database has name, email and date properties, that you used the right database ID, that you redeployed, and that the integration is connected to the Notion page.

I had just bought a new domain and didn't know what to do with it yet. So I built a waitlist page on it in less than 20 minutes, and every signup lands in Notion.

You don't need to hire a developer to ship a landing page like this. Here is exactly how I did it, including the mistakes I made and how I fixed them.

The stack: a Next.js waitlist template, deployed on Vercel, with Notion as the content management system and the database.

What you need before you start

  • A Git account (GitHub).
  • A Vercel account.
  • A Notion account.
  • A Resend account, which is used to send email.
  • An Upstash Redis database, which you can create inside Vercel.
  • A domain. I bought mine on Cloudflare.

I don't go over how to open the Git and Vercel accounts here. That part is easy to find.

Step 1: Deploy the Notion waitlist template on Vercel

  1. Go to Vercel and search for the waitlist template with Notion. It is a simple "coming soon" waitlist template that works with Notion.
  2. Click on deploy.
  3. Give the project a name and create it.

Vercel then asks for environment variables: the Notion secret, the Notion database, Resend and Upstash.

Step 2: Find every environment variable

I didn't know where each one lives. So I asked Claude: "I'm deploying this template on Vercel and it's asking me for these environment variables. Can you tell me exactly where to find them?" I sent it the template, it did some research and told me where to grab each one.

Notion secret

  1. Go to Notion, then My integrations.
  2. Create a new integration and name it (I called mine "waitlist").
  3. Open the configuration settings and copy the installation access token.
  4. Paste it into the Notion secret field on Vercel.

Notion database ID

The template needs a Notion database with at least an email property.

  1. In Notion, create a new page.
  2. Add an empty database.
  3. Name it (I named it "waitlist").
  4. Copy the database ID and paste it into Vercel.

Be careful here. I copied the wrong ID the first time, and it cost me most of my debugging time later.

Resend API key

  1. Go to Resend, then API keys.
  2. Click create API key.
  3. Name it "waitlist", give it full access and all domains.
  4. Copy the key and paste it into Vercel.

Upstash Redis URL and token

This one you set up inside Vercel itself.

  1. In Vercel, go to Storage and create a database.
  2. Choose Upstash for Redis. I had an old one that was archived due to inactivity, so I created a new one.
  3. Pick a region, choose the free plan and name it "waitlist".
  4. Connect it to your project.
  5. Show the secret and copy the URL and the token into the environment variables.

Step 3: Deploy and let it build

Click deploy. The build runs from the initial commit. While it builds, you can start on the domain.

Step 4: Connect a Cloudflare domain to Vercel

Once the build is done:

  1. In your Vercel project, add a domain. Type your domain and connect it to production.
  2. Save.
  3. Click auto configure. Because I bought the domain on Cloudflare, Vercel connects to my Cloudflare account and I don't have to type in any of the DNS records by hand.
  4. Check both the root domain and the www version. My first auto configure attempt on one of them failed, so I ran it again. Then both showed a valid configuration.

DNS takes a little time to propagate. While you wait, you can open the app from the Vercel deployment link.

Step 5: Test the form and fix the errors

I typed my name, clicked join the waitlist, and got: "Failed to save your details. Please try again." Here is how I worked out why.

Read the error

Open the browser console and try again. Mine said "Notion insertion failed". The Vercel logs for the API route were clearer: Notion could not find the database.

Use Claude Code to debug

I opened a Claude Code window, pasted the errors and wrote: "It's been deployed and now I have all of these errors inside of the console. Please help me fix them." For this to work well, connect your Vercel account to Claude Code first, plus GitHub, and Cloudflare if you want.

Fix the database properties

The database schema didn't match what the template sends. I set the Notion database up with three properties:

  • Name.
  • Email, as an email property.
  • Date.

Use the right database ID

I had copied the wrong ID. I grabbed the correct one, then edited the Notion database variable in the Vercel environment variables.

Redeploy after every change

This is the one I missed. A new environment variable isn't used until you redeploy. Save, click redeploy and wait about 40 seconds.

Connect the integration to the Notion page

On the Notion database page, open the three dots, go to Connections, click add connections, pick your waitlist integration and add it to the page. Notion won't let the integration write to the page without it.

After the redeploy, I refreshed the page, typed my name, joined the waitlist, and my entry showed up in Notion.

Step 6: Add the date and an application form

The date didn't fill in. I told Claude Code it worked and asked it to pass the date too. The template clones into a GitHub repo, which you can find under Settings, then Git, in Vercel. Open that repo in Claude Code, make the changes it recommends, and the date goes through to Notion.

The next move is a bigger form. If you want people to join a specific program, ask them questions that qualify them. Then when enrollment opens, you know who is a good fit. At Million Dollar Year this is what we mean by code leverage: a system that keeps collecting and sorting leads while you sleep, with no developer on payroll.

Key takeaways

  • Deploy Vercel's Next.js waitlist template with Notion and fill in the Notion secret, Notion database ID, Resend API key, and Upstash Redis URL and token.
  • Ask an AI assistant where to find each environment variable instead of guessing.
  • Buy your domain on Cloudflare so Vercel's auto configure sets up the DNS for the root and www domains.
  • Give the Notion database name, email and date properties, and connect your integration to the page under Connections.
  • Redeploy on Vercel every time you change an environment variable, or the change is ignored.
  • Read the browser console and Vercel logs when signups fail, and paste the errors into Claude Code to fix them.

Questions and answers

How do I connect a waitlist page to Notion?

Create a Notion integration and copy its access token, then create a database with name, email and date properties and copy its ID. Paste both into the Vercel environment variables of the waitlist template. Finally, add the integration to the database page under Connections so it can write signups.

Why does my Vercel waitlist say failed to save your details?

In my case it was a wrong Notion database ID, a database without the right properties, and an integration that wasn't connected to the page. The Vercel logs showed that Notion could not find the database. Also remember that a changed environment variable only takes effect after you redeploy.

How do I connect a Cloudflare domain to Vercel?

Add the domain to your Vercel project, connect it to production and save. Then click auto configure, which connects to your Cloudflare account so you don't type the DNS records yourself. Check that both the root domain and www show a valid configuration, and give DNS a moment to propagate.

Do I need a developer to build a waitlist funnel?

No. I deployed a ready-made Vercel template, filled in the environment variables, and used Claude and Claude Code to find the settings and fix the errors. Connecting Vercel and GitHub to Claude Code lets it see the project and recommend changes.

What environment variables does the Next.js Notion waitlist template need?

It asks for a Notion secret, a Notion database ID, a Resend API key for sending email, and an Upstash Redis URL and token. You create the Upstash Redis database from the Storage tab inside Vercel, on the free plan.

For 6-figure coaches and agencies

Build a million dollar business, solo, with systems and AI.

Start with the free app: your year planned down to today, your numbers in one place, and exactly what your goal takes.

Get the free app

Free · No card · On the web and on your iPhone

Keep reading