DEV Community

Discussion on: Using NextJS with Headless WordPress

Collapse
 
waptik profile image
Stephane Mensah

Hi! Nice tutorial you have there.

One concern: Does the wordpress website need to be online before using this method?

I'd love to use my local development version as a headless cms

Collapse
 
thedavedavies profile image
Dave

Hi Stephane. Yes - you'll still need to host your WP instance online. Netlify/Vercel will need to connect to the site when it performs the build (they won't be able to connect to your localhost).

The other option, if you don't want to have a WP instance online, is to do the build on your local machine and push the static build up to Netlify via Git (docs.netlify.com/site-deploys/crea...). Then there will be no build step on Netlify, so no need to connect to a WP site online.