How I Use Playwright to Catch Broken Routes Before Deploying

https://hackernoon.imgix.net/images/04WNOp2lVHXJwEYaTx79lkn5vkk1-sl82006.png

Throughout the past month, I’ve been building a free guitar-learning site with interactive tools and blogs among other things. At present, it has hundreds of routes, and I needed something to test the pages before deploying.

So I added a small Playwright workflow. It checks every route in the sitemap, opens some pages in a browser, and runs after the production build to catch any issues.

I think I’d need more than 7 tests to claim it catches all issues, but it’s quite useful for obvious deployment issues.

Why I decided to add Playwright

Generated 22 documents in .contentlayer✓ Creating an optimized production build✓ Compiled successfully✓ Collecting page data✓ Generating static pages (284/284)Build error occurredError: ENOENT: no such file or directory, rename'C:\Users\pc\Code\tonerune\.next\export\newsletter\2026-q3.html'-> 'C:\Users\pc\Code\tonerune\.next\server\pages\newsletter\2026-q3.html'

I was greeted by this interesting build failure. Hmm.. the route was generating both original slug and lowercase version.

The dynamic route was also deliberately generating both...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE

Read more

https://images.macrumors.com/t/g_6sXAxjP2QHbuX3GZAxETkTwMY=/1600x/article-new/2026/09/deep-black-iphone-18-pro.jpg

Apple says its C2 modem is used in iPhone Duo and iPhone 18 Pro worldwide, and in overseas iPhone 18 Pro Max models; US iPhone 18 Pro Max uses a Qualcomm modem

More: New York Times, Washington Post, Fortune, BBC, Axios, The Atlantic, CoinDesk, Wall Street Journal, BBC, Neowin, Associated Press, Forbes, Wccftech, Reuters, ZeroHedge News, Semafor, Inc42, The Wrap, Washington Examiner, The Mahablog, Newser, New York Post, CNBC, Nairametrics, Joe.My.God., TheJournal.ie, CNN, The Verge, Dexerto, Financial Times, TMZ.