Next.js Discord

Discord Forum

Help revalidate API Call in Next.js(App router) and Cloudflare.

Unanswered
Pražský Krysařík posted this in #help-forum
Open in Discord
Pražský KrysaříkOP
Hi forks. Now I am creating this forum to get your kindly help while I am building project using Next.js and @cloudflare/next-on-pages.
To deploy the project on Cloudflare, I created the next.js project using @cloudflare/next-on-pages.
I think it provides the Next.js SSR is able to work in Cloudflare v8.
Then I called some API to fetch the data and I rendered components with that data,
I added the Image, you can check the code how I called.
So what is my problem? This API call is called only build time and not be called every fetch or not working revalidate time.
It seems like it is built as static generation.
I am waiting your nice advices. Thanks.

0 Replies