Repository navigation
feat: static in-browser demo on GitHub Pages - #31
Merged
Merged
Conversation
VITE_DEMO=true swaps the Supabase client for an in-memory stand-in (src/demo/client.ts) and answers the Express API from the same tables (src/demo/api.ts), so the SPA runs with no backend. The visitor is signed in as an admin; state lives in sessionStorage, which survives the app's own reloads and resets when the tab closes. AI, uploads and zip import/export report that they are unavailable. Production builds drop the demo branch. A demo workflow builds it with base /md-kb/ and deploys to Pages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a no-backend demo build (
VITE_DEMO=true): an in-memory Supabase stand-in plus local answers for the Express API, deployed to GitHub Pages by a newdemoworkflow.sessionStorage: it survives the app's own reloads and resets when the tab closes.vite build).Checked locally: typecheck, lint (no new warnings), 66/66 tests, and a browser pass over edit → publish → public page → history, typo-tolerant ⌘K search, and every admin screen.