Step 3: Run Locally
Prerequisites
- Completed Step 2
src/site.jsonandsrc/content/exist
Commands
npm run devAlternative direct invocation:
npx shevky --devExpected Output
- Build runs first - you will see log output for each stage.
dist/is generated with HTML pages.- Terminal prints:
Serving dist on http://localhost:3000. - Open this URL in your browser to browse the generated site.
What Just Happened
The --dev flag in core/scripts/main.js does two things:
- Runs the full build via
_build.execute(). - Starts
serve@14on thedist/directory.
This is a static preview - there is no hot module replacement. To see changes, stop the server, rebuild, and restart.
Common Errors
| Error | Fix |
|---|---|
EADDRINUSE / port conflict | Stop the process using port 3000, then rerun |
Template not found errors | Confirm layout/template files exist in src/templates/ and src/layouts/ |
| No content pages | Add at least one valid Markdown file with front matter under src/content/ |