Build failing with `Error occurred prerendering page "/_not-found". `

hey, i just converted a nextjs app from next-on-pages to opennext. The build succeeds locally with the opennextjs-cloudflare build command, but when I push via git to the branch, the repo-connected worker keeps failing with the following message. I never got this error on next-on-pages. Any insight or advice here?
23:44:06.784 Collecting page data ...
23:44:19.007 Generating static pages (0/38) ...
23:44:20.432 Generating static pages (9/38)
23:44:20.433 Generating static pages (18/38)
23:44:20.433 Error occurred prerendering page "/_not-found". Read more: https://nextjs.org/docs/messages/prerender-error
23:44:20.433 TypeError: Cannot read properties of undefined (reading 'startsWith')
23:44:06.784 Collecting page data ...
23:44:19.007 Generating static pages (0/38) ...
23:44:20.432 Generating static pages (9/38)
23:44:20.433 Generating static pages (18/38)
23:44:20.433 Error occurred prerendering page "/_not-found". Read more: https://nextjs.org/docs/messages/prerender-error
23:44:20.433 TypeError: Cannot read properties of undefined (reading 'startsWith')
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?