Next cloudflare

Hi everyone, I’m having a nightmare trying to deploy my front end.
I’m using Next.js on Cloudflare pages.
I’m following the Strapi blog tutorial, and it was working until part 3, on blog post part 4, started to have weird behaviour. It works well after deployment, but the page breaks if I refresh, if I wait some minutes and refresh again, it returns to work.
Is anybody with experience deploying on Cloudflare Pages?

This topic has been created from a Discord post (1262820020006686833) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

1 Like

I think this is more related to NextJS than Strapi. Look on its repo discussions.

Are you sure it’s possible to deploy next on Cloudflare pages?

Consider using railway instead, it’s very easy to setup

it is not that easy, NextJS is pretty tied to Vercel