rsnext/examples/with-playwright
Steven be904d79ac
Open deploy link in new window for examples (#40804)
Let's open the deploy link in a new window so the link isn't blocked
when running an an iframe, such as Stackblitz.

Previously, this would print the following error:

> Refused to display 'https://vercel.com/' in a frame because it set
'X-Frame-Options' to 'deny'
2022-09-22 09:33:36 -07:00
..
e2e examples: Add Playwright testing example (#29426) 2021-11-14 14:17:59 -06:00
pages Open deploy link in new window for examples (#40804) 2022-09-22 09:33:36 -07:00
public examples: Add Playwright testing example (#29426) 2021-11-14 14:17:59 -06:00
styles Fix playwright tests (#36705) 2022-05-05 10:08:28 -05:00
.gitignore Update default gitignore templates (#39051) 2022-07-26 20:08:40 -05:00
package.json examples: Add Playwright testing example (#29426) 2021-11-14 14:17:59 -06:00
playwright.config.ts fix(examples/with-playwritght): use PORT env variable and fall back to 3000 (#38107) 2022-07-08 10:53:59 +00:00
README.md docs(examples): improve DX while copying command to create new project (#38410) 2022-07-26 21:57:48 -05:00

Next.js + Playwright

This example shows how to configure Playwright to work with Next.js.

Deploy your own

Deploy the example using Vercel or preview live with StackBlitz

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example with-playwright with-playwright-app
yarn create next-app --example with-playwright with-playwright-app
pnpm create next-app --example with-playwright with-playwright-app

Deploy it to the cloud with Vercel (Documentation).