strapi / nextjs-corporate-starter

Strapi Demo application for Corporate Websites using Next.js
MIT License
955 stars 285 forks source link

site loads fine, when I refresh blog page it renders json chunks , not html #113

Closed shaital closed 6 months ago

shaital commented 6 months ago

site loads fine, when I refresh blog page it renders json chunks , not html,please help also I have noticed in the network it returns 304 also I am using strapi cache

francostramana commented 6 months ago

Same problem here. The error appears only in production mode.

image

shaital commented 6 months ago

Got the solution add: export const revalidate = 0; in app/layout.js file. This will solve the problem