Live site (after enabling Pages): https://geph.github.io/dump-stat-character-builder/
Static mode runs entirely in the browser with IndexedDB storage. No MySQL, Node server, or API routes are required at runtime.
- Push this repo to
main(the deploy workflow is in.github/workflows/deploy-pages.yml). - Open Settings → Pages.
- Under Build and deployment, set Source to GitHub Actions (not “Deploy from a branch”).
- Re-run the deploy workflow: Actions → Deploy GitHub Pages → Run workflow (or push any commit to
main). - When the workflow finishes, the site URL appears on the Pages settings page and in the workflow summary.
If the deploy job fails with a Pages permission or “not enabled” error, step 3 was skipped — enable GitHub Actions as the Pages source first, then re-run.
The workflow sets NEXT_PUBLIC_BASE_PATH=/${{ github.event.repository.name }} (i.e. /dump-stat-character-builder for this repo).
pnpm install
pnpm icons:manifest # optional — build:static runs this automatically
pnpm build:staticOutput is written to out/. Preview with any static file server:
npx serve outSet at build time (not runtime):
| Variable | Example | Purpose |
|---|---|---|
NEXT_PUBLIC_DEPLOY_MODE |
static |
Selects IndexedDB client (set by build:static) |
NEXT_PUBLIC_BASE_PATH |
/v0-dump-stat-character-builder |
GitHub project site path |
NEXT_OUTPUT |
export |
Enables static export (set by build:static) |
For a user/org site at username.github.io (no repo subpath), leave NEXT_PUBLIC_BASE_PATH empty.
The workflow .github/workflows/deploy-pages.yml builds on push to main and deploys out/ to GitHub Pages.
In repository settings → Pages, set source to GitHub Actions.
- First visit auto-loads bundled SRD content into IndexedDB.
- Clearing site data resets the compendium and characters.
- Export/import JSON packs (Import page or Settings menu) to move content between devices.
- Not available: PDF/text AI import, web URL import, server seed API.
Hosted (build:hosted) |
Static (build:static) |
|
|---|---|---|
| Storage | MySQL | IndexedDB |
| Deploy | VPS + nginx + PM2 | GitHub Pages |
| Import | Full (PDF, web, AI) | JSON packs + bundled SRD |
See README.md for VPS/nginx setup.