简体中文 | English
Powered by Astro & Firefly theme template. Hosted on Cloudflare Pages.
Preview | Preview (Cloudflare Pages) | Preview (Vercel) | Preview (Netlify) | Preview (GitHub Pages) (No CSS)
-
Clone the repository
git clone https://github.com/fblaze62/blog.git
-
Install dependencies
pnpm install
-
Start the development server
pnpm dev
-
Build for production
pnpm build
Please refer to Firefly Docs.
From Firefly Docs.
- Vercel
Application Preset:Astro
Build Command:pnpm build
Output Directory:dist
Install Command:pnpm install
Settings > General > Node.js Version:22.x - Netlify
Application preset:Astro
Build command:pnpm build
Output directory:dist
Install command:pnpm install
Environment variables >NODE_VERSION:22 - GitHub Pages
Settings > Pages > Source: GitHub Actions
/config/siteConfig.ts > SiteConfig.site_url:"https://<username>.github.io"
/astro.config.mjs > defineConfig.base:"/<repo-name>/"(No editing needed forbase, if the GitHub Pages set a custom domain or the repo is named<username>.github.io) - Cloudflare Workers / Pages
Build command:pnpm run build
Deploy command (Workers):npx wrangler deploy
Build output directory (Pages):dist - EdgeOne Pages
Preset framework:Astro
Build output directory:dist
Build command:pnpm build
Install command:pnpm install
Environment variables >NODE_VERSION:22 - Alibaba Cloud ESA
Framework preset:Astro
Build command:pnpm build
Output directory:dist
Environment variables >NODE_VERSION:22