Run Next.js server inside Cypress plugins process and mock network calls made from getServerSideProps
Read the blog post Mock Network When Using Next.js getServerSideProps Call
See the server started from cypress/plugins/index.js and the tests in cypress/integration/spec.js