Local Development Setup
This project uses Jekyll for static site generation and Vite for local development server with hot reloading.
Quick Start
Start the development server:
npm run dev
This will:
- Start Jekyll in watch mode (rebuilds when you edit files)
- Start Vite dev server at http://localhost:3000
- Auto-refresh the browser when files change
Individual commands:
# Just build Jekyll once
npm run jekyll:build
# Watch Jekyll (auto-rebuild on changes)
npm run jekyll:watch
# Just run Vite dev server (serves _site directory)
npm run vite:dev
# Production build (Jekyll + Vite)
npm run build
Workflow
- Edit markdown files in
_recipes/or modify layouts/includes - Jekyll detects changes and rebuilds to
_site/ - Vite detects
_site/changes and refreshes browser - See changes instantly!
Troubleshooting
SSL Certificate Error with Jekyll
If you see SSL errors when running Jekyll, it’s trying to fetch the remote theme. The existing _site folder will still work with Vite. To fix the Jekyll SSL issue, you may need to update your Ruby SSL certificates.
Port already in use
If port 3000 is busy, edit vite.config.js and change the port number.