Next.js Discord

Discord Forum

Updating from Next 12 to 13 and running into some weird getStaticProps issues...

Unanswered
Egyptian Mau posted this in #help-forum
Open in Discord
Egyptian MauOP
I am running a site in SSG/build mode and have several pages with calls to getStaticProps. I'm also using MSW to e2e test some things in Cypress, I have a service worker method that will catch a series of requests that happen during run build and returned mocked data so we can consistently teste with Cypress. Everything was working as expected in Next12, when upgrading to 13 some getStaticProps no longer seem to be firing unless I run them from EVERY page... and that doesn't seem right?
Am I missing something? Everything here is still using the /pages directory, not /app.

0 Replies