DEV Community

Discussion on: Using WordPress as a headless CMS with Next.js

 
imakethesites profile image
Mark Wlodawski

Thanks, I'll check it out.

Thread Thread
 
logantai24 profile image
Logan Tai

If you are hosting your NextJS site in vercel/netlify, the incremental static generation feature should be able to facilitate your needs as the page will be built again in the background when a new request comes in, you only need to add a simple " revalidate: 1" in your getStaticProps function

nextjs.org/docs/basic-features/dat...

Thread Thread
 
imakethesites profile image
Mark Wlodawski

I am hosting on netlify, and I've been hoping there would be a faster solution than adding Apollo. I'll check this out, thanks.

Thread Thread
 
imakethesites profile image
Mark Wlodawski

@logantai24 Thanks, it worked!