Skip to content

feat(site): deploy demo build to GitHub Pages - #28

Merged
cursor[bot] merged 1 commit into
masterfrom
cursor/wp-19-github-pages-0b31
Sep 15, 2026
Merged

cursor[bot] merged 1 commit into
masterfrom
cursor/wp-19-github-pages-0b31

Conversation

@jefflau

@jefflau jefflau commented Sep 15, 2026

Copy link
Copy Markdown
Owner

What

Publishes the WP-19 catalog site to GitHub Pages so it can be seen before enspack.dev exists: https://jefflau.github.io/enspack/.

  • .github/workflows/pages.yml: on push to master touching apps/site/** (or workflow_dispatch), builds @enspack/site with VITE_BASE=/enspack/, VITE_DATA_SOURCE=demo, VITE_CHAIN=sepolia and deploys via actions/deploy-pages. Demo fixtures until the Sepolia indexer is publicly reachable; flip VITE_DATA_SOURCE and set VITE_INDEX_URL then.
  • vite.config.ts reads VITE_BASE; main.tsx sets the router basename from import.meta.env.BASE_URL (routerBasename, unit-tested) so deep links work under the sub-path.
  • pnpm build now also writes dist/404.html (copy of index.html) and dist/.nojekyll, because Pages has no rewrite rules.
  • README: env var and Pages section.

Verification

  • pnpm --filter @enspack/site typecheck|test (32 tests) and biome clean.
  • Production build with VITE_BASE=/enspack/ served with vite preview: deep link /enspack/name/qwen--… renders the model page, wordmark returns to /enspack/, row click navigates under /enspack/name/….

Model page served under /enspack/ sub-path

After merge

The workflow calls actions/configure-pages with enablement: true. If the first run fails on enablement, set Settings → Pages → Source to "GitHub Actions" once and re-run.

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Vite base and router basename follow VITE_BASE so the bundle serves from
/enspack/; build writes 404.html and .nojekyll because Pages has no rewrites.
Workflow publishes on pushes to master touching apps/site.

Co-authored-by: Jeff Lau <jefflau@users.noreply.github.com>
@cursor
cursor Bot merged commit a652b0a into master Sep 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant