使用Next.js部署WordPress
...小于 1 分钟
WordPress只一个历史悠久用户友好的博客,并且还挺云端免费版本。但是访问速度比较慢,还好有了vercel,用CDN加速,就非常好了。说干就干。
创建项目
yarn create next-app --example cms-wordpress cms-wordpress-app
结果如下
Initialized a git repository.
Success! Created cms-wordpress-app at /Users/terwer/Documents/app/Docker/terwer/cms-wordpress-app
Inside that directory, you can run several commands:
yarn dev
Starts the development server.
yarn build
Builds the app for production.
yarn start
Runs the built app in production mode.
We suggest that you begin by typing:
cd cms-wordpress-app
yarn dev
✨ Done in 45.53s.
参考
https://github.com/vercel/next.js/tree/canary/examples/cms-wordpress
Powered by Waline v2.14.9