Revalidate data #258
Replies: 2 comments 1 reply
-
Hi @PiotrSierant , Outstatic currently only supports generating data for creating static pages. It seems you are trying to fetch Outstatic's data dynamically or after the build process. That's why you're getting that error. I think a lot of the bugs people report with Outstatic stem from this. I need to do some investigation and see if there's a way to allow the metadata.json to be accessed outside of the build process. |
Beta Was this translation helpful? Give feedback.
-
This would solve a lot of the problems associated with working in Next.js. Most of the errors I'm facing are outside the static generation of the blog page or post's page. (Like the above are the last 3 posts on the home page). When I use, for example, the cookies function from next/cookies then automatically my site goes to a dynamic page which again raises issues with using outstatic and having to fiddle with setting the group structure of routes |
Beta Was this translation helpful? Give feedback.
-
Hi, I have 3 recent posts on the home page. The project builds and works flawlessly. However, when I use the revalidatePath("/") function, I get an error when retrieving data from outstatic and the metadata.json file.
After performing this function:
I get a view like this on the home page:
and such logs:
this is my home page code:
Beta Was this translation helpful? Give feedback.
All reactions