Dev server
Hot reload, error overlay and local preview.
sinth dev builds in memory and serves your site:
- Hot module replacement: saving a
.sinthfile swaps the page's code without a reload and keeps your state (variables, form inputs). CSS-only changes are applied without touching the page. Changes to metadata reload the page. - Error overlay: compile errors appear in the browser with the code frame and a hint, and disappear when fixed. Runtime errors are shown too.
- Clean URLs:
/about,/about.htmland/blog/all work. - Static files from
public/and your static folders are served directly; changing them reloads the page. - If the port is busy, the next free port is used.
--hostexposes the server on your network (e.g. to test on a phone).
Editor temp files and folders like node_modules, dist and .git are ignored.