Skip to main content
You will end with your dashboards on a web server your team can open, rebuilt when the data changes. The steps use the sample project from the quickstart.

1. Build the pages

Build checks the project, runs every query and writes static HTML to outDir (dist/ by default): one folder per dashboard and per report, and an index.html that opens the first page. Every URL is relative, so the folder works under any path and straight from disk.

2. Choose who can see them

A page holds the data it shows, including what its filters and table downloads need, and asks nobody who they are. So publish dist/ behind access control you already trust: an intranet behind your company’s sign-in, a private bucket with authenticated access, or a static host with its own access policy. Use a public host only for data you would publish anyway.

3. Copy the folder

Any static host serves dist/ as it is. For example:
Build replaces only the files it wrote, and asset names carry a content hash, so a host can cache them forever.

4. Check every change

Run both on every pull request. Neither changes your specs or the published pages. check runs without database access and only warns that it couldn’t read a database source’s columns. test reads the data, so a test on a database source needs the connection variable or a fixture file, and it may keep a local copy of the rows in .hatchmark/cache/.

5. Rebuild when the data changes

Run hatchmark build again and copy the folder. It reuses cached results for queries whose data didn’t change, so a rebuild is quick. To rebuild on a schedule and serve the pages from inside your network, run hatchmark serve in Docker instead.

Next