Repository navigation
arcade 0.6.0: a landing page at play.<base>/ instead of the 302 - #3
Merged
Merged
Conversation
The page is generated from the registry: every game linked to its <slug>.play URL, a "Browse all games" link to ARCADE_LANDING_URL, no script or external request (CSP), light/dark, phone-first. ARCADE_LANDING_MODE=redirect keeps the old 302. The API is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0116e9DMUhtNXM5bHUdMhDAn
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
https://play.danielstephenson.dev/is changed from a 302 to the portal into a real landing page (arcade 0.6.0).src/arcade/landing.pyrenders a small self-contained HTML page from the registry on each request: every game by title, linked tohttps://<slug>.play.<base>/(a game with nothing deployed is listed as "Coming soon", unlinked), and a prominent Browse all games → danielstephenson.dev/play link toARCADE_LANDING_URL.Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; …enforces it. Light/dark viaprefers-color-scheme, phone-first layout,Cache-Control: public, max-age=60, titles HTML-escaped.ARCADE_LANDING_MODE=page(default) orredirect(the old 302 toARCADE_LANDING_URL); any other value refuses to start. The API is unchanged.Verification
python3 -m pytest(3.8): 127 passed, including newtests/test_landing.pyand landing/redirect/HEAD/registry-reload tests intests/test_server.py.The gateway pin is not bumped here.
drafted by Claude on behalf of Daniel Stephenson
🤖 Generated with Claude Code
https://claude.ai/code/session_0116e9DMUhtNXM5bHUdMhDAn