.rmvb (@RMVB_0410) 在 【个人博客】Cloudflare从零搭建一个属于自己的博客 中发帖
需要一个域名喔。如果自己不想提供的话,cf的dev域名也是可以的。所以可以做到零成本。
第一步:使用 Astro 搭建一个博客框架,并创建仓库
检查配置
!Astro 现在要求 Node.js v22.12.0 或更高版本
node -v
npm -v
git --version
创建 Astro 博客项目
使用npm create astro:
npm create astro@latest
将会交互式创建博客。
也有其他方式,可以自己了解一下。
PS E:\Project\Melosyne_Blog\新建文件夹> npm create astro@latest
> npx
> create-astro
astro Launch sequence initiated.
dir Where should we create your new project...