Update static page #16224
Unanswered
MohammadPCh
asked this question in
Help
Update static page
#16224
Replies: 1 comment 4 replies
-
Does anybody have an idea? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm developing a site about movies, an example URL is:
https://example.com/movie/[id]/[name]
for exmaple:
https://example.com/movie/1/blabla
I build each page in run time with set fallback: true, and the site has about 200K movie page. Some times the content of one page needs to update. for example, I build 200,000 static pages, and one movie with id 60 was changed! I don't want to build all pages again, I just want to update a page.
I found that I can remove files of that page from build folder: (blabla.json & blabla.html) but it seems NextJS cached it in its memory and it serves the old files without building new files.
I know NextJs introduce revalidate for updating, but it is useless for this scenario because I don't want update page continuously. I just want to update a page sometimes.
In my opinion, it's nice to have an API for purge a static page, so the user doesn't need to build 200,000 pages to update one page.
Beta Was this translation helpful? Give feedback.
All reactions