Headless WordPress with React and NextJS
- Clone the repo locally.
- Search and replace
siteurlfromwp.testto the url of your desired site. - Run
npm install. - Run
npm run buildfor production build. - Run
npm run startto see the changes as of now at http://localhost:8080. ( You can change port by updatingportvalue in server.js ) - Use
npm run devwhile making changes / updates to the files.
- pages - Files inside this directory will be treated as pages.
- routes.js - You can define all the routes here.
- server.js - Contains server setup information.
Sample demo is built using this.
