Next.js Discord

Discord Forum

Error: Failed to load static props

Unanswered
Polar bear posted this in #help-forum
Open in Discord
Polar bearOP
From the docs I understood that, When Next.js builds a page with getStaticProps, Next.js generates both:

- an HTML file.
- a JSON file holding the result of running getStaticProps.
When we deploy a new version, Safari Mobile seems to fetch an old terminated JSON file that holds the result of getStaticProps.

Is there a way to prevent browsers from caching the website?
Is there a way I can provide fallback for this error?

0 Replies