Skip to content

chore(web): add scripts to run the product page and demo locally - #20

Merged
joshchen-dev merged 1 commit into
mainfrom
claude/great-shannon-b4y5vi
Oct 24, 2026
Merged

joshchen-dev merged 1 commit into
mainfrom
claude/great-shannon-b4y5vi

Conversation

@joshchen-dev

@joshchen-dev joshchen-dev commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

npm run dev starts the full app, which proxies /api to the Go backend, so it looked broken when only the product page or demo was wanted. This adds named scripts that need no backend:

  • npm run dev:product: the product page with live reload
  • npm run dev:demo: the demo at /demo/ with live reload
  • npm run preview:pages: serves the build:pages output the way GitHub Pages does

The README's "Product page and demo" section now lists these commands, and notes that npm run dev needs the Go process.

No version bump: this is a chore with no behaviour change.

Tests

I checked that each script serves its page locally:

  • dev:product serves the product page
  • dev:demo serves the app under /demo/
  • preview:pages serves / and /demo/ with 200 responses

format:check passes.

`npm run dev` starts the full app, which needs the Go backend, so it
looked broken when only the product page or demo was wanted. Adds
dev:product, dev:demo and preview:pages, and documents them.
@joshchen-dev
joshchen-dev merged commit b36ce01 into main Oct 24, 2026
1 check passed
@joshchen-dev
joshchen-dev deleted the claude/great-shannon-b4y5vi branch October 24, 2026 03:21
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