Personal website and blog built with Astro.
- Prefer
.mdxfor all new blog posts. Use filenames likeYYYY-MM-DD-slug.mdx. - For local validation and Copilot work, build with
NODE_ENV=development npm run buildso the build matches the repo's testing configuration. - Run validation in this order from the repo root:
NODE_ENV=development npm run buildnpm testnpm run checknpm run test:e2ewhen browser-facing changes are involved
- Node.js 20+
- npm 10+
-
Clone the repository:
git clone https://github.com/MathewSachin/MathewSachin.GitHub.io.git cd MathewSachin.GitHub.io -
Install dependencies (Mac):
npm ci
Start the Astro development server:
npm run devThe site will be available at http://localhost:4321 by default.
Create a local/testing build (matches Copilot and CI test builds):
NODE_ENV=development npm run buildPreview the production build locally:
npm run previewDeployment is automated with GitHub Actions and publishes the generated site to GitHub Pages.