Add self-hosted tutorial player (wallet-connection demo)#175
Open
kelley-sean wants to merge 1 commit into
Open
Add self-hosted tutorial player (wallet-connection demo)#175kelley-sean wants to merge 1 commit into
kelley-sean wants to merge 1 commit into
Conversation
Replace the externally hosted (Supademo) iframe for the "Connecting wallet" tutorial with a self-hosted static player served from public/tutorials/. The bundle is fully self-contained (vanilla JS player, screenshots, and demo data) and loads as a same-origin iframe, removing the external dependency for this tutorial. Other tutorials remain on Supademo for now so the two can be compared on the same page before migrating the rest.
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
Replaces the externally hosted (Supademo) embed for the Connecting wallet tutorial with a self-hosted static player — a test of moving tutorials in-house to cut costs.
public/tutorials/, served same-origin as a static iframe (no external dependency, no third-party tracking/cookies).public/tutorials/player/so future tutorials reuse a single copy; per-tutorial content (screenshots + demo data) lives under its own folder.Testing
next build(static export) passes; the bundle is emitted toout/tutorials/…and the tutorials page references the local iframe.innerHTML/eval, no external network calls, http(s)-only link guard, strict CSP on the iframe document.How to review
Open
/protocol/tutorials→ Basics → Connecting wallet (self-hosted) and compare against the other entries (still Supademo).