Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 931 Bytes

File metadata and controls

53 lines (33 loc) · 931 Bytes

Resend with Next.js and Playwright

This example shows how to do E2E testing with Resend, Next.js, and Playwright.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

Instructions

  1. Define environment variables in .env file.
cp .env.example .env
  1. Install dependencies:
npm install
  1. Run Next.js locally:
npm run dev
  1. Make a curl request
curl -X http://localhost:3000/api/send

Running tests

  1. Install Playwright:
npx playwright install
  1. Run Playwright:
npx playwright test

License

MIT License