feat: offline mode and static GitHub Pages build#160
Open
madjin wants to merge 3 commits into
Open
Conversation
…st-xml-parser) - npm audit fix: updated fastify, flatted, minimatch, ajv, brace-expansion - Added fast-xml-parser override to ^5.5.6 to fix AWS SDK transitive vuln - Remaining: esbuild dev-server advisory (requires breaking upgrade, skipped) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add offline mode (?mode=offline) for fully client-side operation. Add static build for GitHub Pages (npm run static:build). Add connection policy with direct mode (?connect=ws://...) for localhost. Make PUBLIC_WS_URL optional on server (HTTP-only mode with warning). Sanitize WebSocket URLs to prevent auth token leakage. Add connection UI in sidebar with status display. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
Breaking change analysisReviewed every runtime code change against upstream Server (
|
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.
Summary
?mode=offline) for fully client-side operationnpm run static:build)?connect=ws://...) for localhostPUBLIC_WS_URLoptional on server (HTTP-only mode with warning)Non-breaking
Existing deployments with current
.envsettings behave identically. All new features are additive.Depends on #159 (maintenance/docs split out for easier review).
Test plan
npm run dev— server starts, world loads, multiplayer works?mode=offline— client boots without WebSocketnpm run static:build— produces working offline client inbuild/static/PUBLIC_WS_URL— server starts HTTP-only with warning?connect=ws://localhost:3000/ws— direct connect works on localhostReplaces #158 (same changes, cleaner history).
🤖 Generated with Claude Code