Skip to content

vercel-support/00266745-waituntil

Repository files navigation

00266745 – test waitUntil()

Replication steps:

  1. Clone the repo locally and install dependencies:
git clone https://github.com/vercel-support/00266745-waituntil.git
cd 00266745-waituntil
pnpm install
  1. Run the development server and test the API route:
pnpm dev
curl http://localhost:3000/api/test-waitUntil

You should see this in runtime terminal:

❯ pnpm dev

> [email protected] dev /Users/aldo/vercel/cases/00266745/00266745-waituntil
> next dev

  ▲ Next.js 14.2.7
  - Local:        http://localhost:3000

 ✓ Starting...
 ✓ Ready in 1245ms
 ✓ Compiled /api/test-waitUntil in 80ms (58 modules)
entering waitUntil
 GET /api/test-waitUntil 200 in 129ms
entering waitUntil
  1. Build and start the production server:
pnpm build
pnpm start
  1. Test the API route again:
curl http://localhost:3000/api/test-waitUntil

You should might see this in runtime terminal:

❯ pnpm start

> [email protected] start /Users/aldo/vercel/cases/00266745/00266745-waituntil
> next start

  ▲ Next.js 14.2.7
  - Local:        http://localhost:3000

 ✓ Starting...
 ✓ Ready in 163ms

There is no GET or entering waitUntil message in the output.