Features
- Pages and Posts staticalization
- Images and Styles Grabing to local project
- Configurable Wordpress site URL
Limitations
- few javascripts included currently
TODOs
- add more js
- more test
- …
How to use
- Create a WordPress(v5.7+) site
- Install Neve theme(v2.10.2+)
- Setting Wordpress
Permalink Settings
with Numeric
format !! - Install WPGraphql plugin
- Clone this repo and install dependecies
- Create .env.local by copy .env.local.example
- Replace WORDPRESS_URL value with your own wordpress url
- Run
yarn dev
to start buiding you static wordpress site - Visit
http://localhost:3000
% cd ~/web/next-projects
% git clone https://github.com/lwz7512/next-static-neve.git my-static-wpsite
% cd my-static-wpsite
% yarn
% cp .env.local.example .env.local
% yarn dev
Deploy your own
- push your local project to github
- create a vercel account
- connect this repo from github to your vercel project
- add environment varialble WORDPRESS_URL in your vercel project
- start deploy
Dependencies
- wordpress
- neve
- wpgraphql
- got
- cheerio