e2e test using playwright in Next.js
Unanswered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
webServer: {
command: "npm run start",
url: "http://127.0.0.1:3000",
reuseExistingServer: !process.env.CI,
timeout: 200000,
}, When i run
npx playwright test, this warning appears.[WebServer] âš "next start" does not work with "output: standalone" configuration. Use "node .next/standalone/server.js" instead.I know what I need to do from the message. but I'd like to know if there's other good approach to handle this.
1 Reply
Try
npm run dev. Start only starts the server, you would need to first do a build before starting the server.