Cloudflare Pages
This docs site is already configured for static export:
next.config.mjssetsoutput: 'export'npm run buildwrites the site toout/npm run postbuildgeneratesllms.txt, raw markdown, andsitemap.xml
That makes Cloudflare Pages a good fit for docs.hiveloom.cloud.
Recommended: Git-integrated Pages
Cloudflare’s current Next.js static export guide uses:
- framework preset:
Next.js (Static HTML Export) - build command:
npx next build - build output directory:
out
For this repo, use the repo-local commands instead:
cd hiveloom-cloud/docs/nextra
npm ci
npm run build
npm run postbuild
npm run check-linksOne-time setup in Cloudflare
- Push the docs source to the Git repo you want Cloudflare Pages to watch.
- In Cloudflare, open
Workers & Pagesand create a new Pages project. - Choose
Import an existing Git repository. - Select the repo and branch you want to deploy from, usually
main. - Set these build settings:
Framework preset: Next.js (Static HTML Export)
Root directory: hiveloom-cloud/docs/nextra
Build command: npm ci && npm run build && npm run postbuild
Build output directory: out
Node.js version: 20- Create the project and let the first build finish.
- In the Pages project, open
Custom domainsand adddocs.hiveloom.cloud. - If the DNS zone is already in the same Cloudflare account, Cloudflare can create the DNS record for you.
Pre-deploy checklist
Run this locally before pushing:
cd /root/github/hiveloom-app/hiveloom-cloud/docs/nextra
npm ci
npm run build
npm run postbuild
npm run check-linksThat verifies:
- the static export succeeds
llms.txtand the raw markdown artifacts are regenerated- internal links still resolve
What gets published
The built out/ directory contains:
- HTML pages
- static assets from
public/ llms.txtllms-full.txt- one
.mdfile per page sitemap.xml
Optional: direct upload
If you do not want Git integration, Cloudflare Pages also supports direct upload of a prebuilt static directory. In that mode:
- Build the site locally.
- Use the generated
out/directory as the upload artifact. - Create the Pages project as a direct-upload project.
Git integration is usually better for this repo because every push produces a repeatable deployment and preview URLs.
Exact settings for this repo
Copy these values as-is:
Project name: hiveloom-docs
Production branch: main
Framework preset: Next.js (Static HTML Export)
Root directory: hiveloom-cloud/docs/nextra
Build command: npm ci && npm run build && npm run postbuild
Build output directory: out
Environment variable: NODE_VERSION=20
Custom domain: docs.hiveloom.cloudAfter the first deploy
Smoke test the live site:
curl -I https://docs.hiveloom.cloud/
curl -I https://docs.hiveloom.cloud/llms.txt
curl -I https://docs.hiveloom.cloud/install.mdIf those return 200, the static site is live and the AI-readable artifacts are
published too.