From 7ebc89d08e2630f1ca7faa4eed3da02441f8db69 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 11 Aug 2026 16:38:08 +1000 Subject: [PATCH] chore(just): add export and deploy recipes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `just deploy` builds the Mintlify static export and publishes it to Cloudflare Workers static assets. `just export` is split out as its own recipe and declared as a dependency, so you can build the export without deploying — worth having when you want to check what actually ships. Workers rather than Pages: Cloudflare's guidance is now "if you are starting a new project, use Workers instead of Pages", and static-asset requests on Workers are unmetered. The whole estate is moving to the same shape. `mint export` produces a real pre-rendered static build — I verified 27 pages with server-rendered HTML, and it needs no Mintlify account. Note this does mean giving up Mintlify's hosted search, analytics and AI chat, which are server-side; connecting the repo in their dashboard instead is the alternative. --- justfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/justfile b/justfile index 1bf4da8..b788c70 100644 --- a/justfile +++ b/justfile @@ -12,3 +12,15 @@ lint: [group("dev")] run: npm run dev + +# Build the Mintlify static export into dist/ +[group("deploy")] +export: + npx --yes mint@latest export + rm -rf dist + unzip -q export.zip -d dist + +# Deploy the docs site to Cloudflare +[group("deploy")] +deploy: export + npx --yes wrangler@latest deploy --assets dist --name docs-mantis --compatibility-date 2026-05-01