feat: connection policy layer, offline mode, static GH Pages deploy#3
Merged
feat: connection policy layer, offline mode, static GH Pages deploy#3
Conversation
actions/checkout v4 → v6 actions/setup-node v4 → v6 docker/login-action v3 → v4 docker/metadata-action v5 → v6 docker/setup-qemu-action v3 → v4 docker/setup-buildx-action v3 → v4 docker/build-push-action v6 → v7 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Compute an absolute base URL (new URL('./', location.href)) for offline
mode so bare filenames and /absolute paths don't break when the site is
served at a sub-path like /hyperfy/. Passes assetsUrl into world.init so
updateSky fires with the correct HDR URL. Removes redundant explicit HDR
load since ClientEnvironment handles it via baseEnvironment.hdr.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
OfflineNetworknull-object class intoClientNetwork(4 small conditionals, one fewer file)/hyperfy/) usingnew URL('./', location.href)as the basegh-pagesbranch on everydevmergeTest plan
npm run dev— loads in offline mode when noPUBLIC_WS_URLset, world spawns with ground + sky?mode=offline— forces offline mode regardless of env/connect ws://...chat command — navigates to connected mode🤖 Generated with Claude Code