Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.91 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.91 KB

Cloudflare Pages Deployment

Astro Cloudflare Pages TailwindCSS

🛠️ Stack

📜 Getting Started

Get pnpm

corepack enable
corepack prepare pnpm@^9 --activate

Start developing!

pnpm install
pnpm dev

Open http://localhost:4321 in your browser to view the result 🚀

🚀 Deployment

Commits to the main branch updates the production deployment.

Commits on development branches creates a preview deployment.

This is driven by a GitHub Action to invoke Cloudflare Wrangler

🧞 Commands

Command Action
pnpm dev Launches a local development server at localhost:4321.
pnpm build Checks for errors and creates a production build in ./dist/.
pnpm preview Local preview at localhost:4321
pnpm preview:cf Cloudflare Pages local preview at localhost:8788

📣 Thanks

Bootstrapped using Astro CLI from Smilesharks/dev-portfolio