This example shows how to configure Playwright to work with Next.js.
Deploy the example using Vercel or preview live with StackBlitz
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-playwright with-playwright-appyarn create next-app --example with-playwright with-playwright-apppnpm create next-app --example with-playwright with-playwright-appDeploy it to the cloud with Vercel (Documentation).