Dynamic Routes and Static Export
Unanswered
Bombay posted this in #help-forum
BombayOP
hi, I'm developing a site with nextjs and I need to put it online in a static hosting, so for this reason I inserted the 'output:export' command in my configuration. I connected the project to the Wordpress cms from which I retrieve the data for the individual posts. The problem is that if I insert a new post and don't re-build, I don't see the specific page of the new post. How can I solve it? For my needs, the data will change often on the cms and I don't want to build every time I upload new content.
15 Replies
@Bombay
if you enable
output: export for static export, you have no way to update or add new pages/content without rebuildingThis is only ideal when you have your contents don't change often
in your case, I think ISR will be ideal
also I don't know which CMS you are using but check this out as well
https://www.sanity.io/live
Sanity supports live content update now
https://www.sanity.io/live
Sanity supports live content update now
BombayOP
i use wordpress as cms
that's okay
see my previous response!
BombayOP
no, because i need to use 'output: export' and deploy the website to static hosting (without node)
@Bombay no, because i need to use 'output: export' and deploy the website to static hosting (without node)
then it's impossible as I described
BombayOP
@James4u If I use pages router?
still not possible. static export doesn't have a server so the data received during build is final and immutable for the entire lifetime of that deployment