使用Next.js部署WordPress
WordPress只一个历史悠久用户友好的博客,并且还挺云端免费版本。但是访问速度比较慢,还好有了vercel,用CDN加速,就非常好了。说干就干。
# 创建项目
yarn create next-app --example cms-wordpress cms-wordpress-app
1
结果如下
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.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 参考
https://github.com/vercel/next.js/tree/canary/examples/cms-wordpress (opens new window)
编辑 (opens new window)
上次更新: 2023/09/19, 13:33:19