next-state-overwrite-example
Example overwriting Next.js variable NEXT_STATE from a Cypress test
Read the blog post Control Next.js Server-Side Data During Cypress Tests
See cypress/integration/spec.js
Install and start
$ yarn
$ yarn local
Should start the application and open Cypress test runner