@2021/03/18
The fastest way to export your Wordpress(v5.7& Neve theme v2.10.2) site as a static site
- Pages and Posts staticalization
- Images and Styles Grabing to local project
- Configurable Wordpress site URL
- few javascripts included currently
- add more js
- more test
- ...
- Create a WordPress(v5.7+) site
- Install Neve theme(v2.10.2+)
- Setting Wordpress
Permalink Settings
withNumeric
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
- 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
- wordpress
- neve
- wpgraphql
- got
- cheerio