Playwright can mock browser requests, but not the fetches your Next.js server makes during SSR. Here is how I record real API responses once and replay them deterministically on CI, with the backend turned off.
Tag
Next.js
3 posts tagged “Next.js”.
Define and use responsive breakpoints as variables in pure CSS — no preprocessor or JS — for cleaner, DRY media queries.
How to share serializable state between unrelated React components — including server and client components in Next.js — without prop drilling.