DEV Community

Discussion on: Using NextJS with Headless WordPress

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.