安装环境
下载安装Node.js
创建GitHub账号和仓库
初始化博客
使用模板创建Astro项目
1
npm create astro@latest -- --template <github用户名/github仓库名>
开启代理可能会导致报错,不开代理速度又比较慢。
启动本地测试
1
npm run server
生成静态网页(dist文件夹内)
1
npm run build
下载安装Node.js
创建GitHub账号和仓库
使用模板创建Astro项目
1 | npm create astro@latest -- --template <github用户名/github仓库名> |
开启代理可能会导致报错,不开代理速度又比较慢。
启动本地测试
1 | npm run server |
生成静态网页(dist文件夹内)
1 | npm run build |