Astro Reference
Overview of things learned about the Astro Web Framework.
Reference
Section titled “Reference”- Website astro.build
This wiki was build with Astro Starlight. Here’s the process I went through to set it up.
- Install Astro Starlight
- Run command
npm create astro@latestDeploy to Cloudflare
Section titled “Deploy to Cloudflare”Overview of setting up the Astro Starlight template to be deployed to my Cloudflare Worker.
- Install Astro CLI:
npm install -g astro- Run command: Global
npm install wrangler@latest --save-devProject only
npm install -D wrangler@latest- Create wrangler.jsonc file, add
{ "name": "my-astro-app", "compatibility_date": "YYYY-MM-DD", // Update to the day you deploy "assets": { "directory": "./dist", }}- Run command:
npx astro build && npx wrangler dev- Run command:
npx astro build && npx wrangler deployThis will take you to the CloudFlare web app (through a web browser) to set up a worker. It will set up the worker with a default CF Workers domain.
- Configure new worker to use custom domain.