be904d79ac
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' |
||
---|---|---|
.. | ||
e2e | ||
pages | ||
public | ||
styles | ||
.gitignore | ||
package.json | ||
playwright.config.ts | ||
README.md |
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
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).