Skip to content

About

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

wesbaker.com

Personal site built with Astro.

Setup

  1. Clone the repository.
  2. Install dependencies:
npm install
  1. Enable the repo's versioned Git hooks:
bin/setup-git-hooks

That hook runs npm run check before each commit, so malformed front matter, type errors, and broken internal links fail locally.

Common Commands

npm run dev      # Start the dev server (http://localhost:4321), drafts included
npm run build    # Build the site into dist/
npm run preview  # Serve the built site
npm run check    # Type-check, build, and validate internal links

Drafts (draft: true in front matter) are always shown by npm run dev and hidden by npm run build. To include them in a build, set INCLUDE_DRAFTS=true — which is what bin/build.sh does for Cloudflare Pages preview deployments.

Deployment

Cloudflare Pages builds the site with bin/build.sh and publishes dist/. .node-version pins the Node version Pages uses, so a change to its default can't break the build.

GitHub Checks

GitHub Actions runs npm run check on pull requests and pushes to main.

About

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages