- Clone the repo locally and install dependencies:
git clone https://github.com/vercel-support/00266745-waituntil.git
cd 00266745-waituntil
pnpm install
- 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
- Build and start the production server:
pnpm build
pnpm start
- 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.