Skip to content

Playground: single canonical UI at /playground/, no /web/ subdir#1032

Merged
alexey-milovidov merged 1 commit into
mainfrom
playground-index-redirect
Jul 22, 2026
Merged

Playground: single canonical UI at /playground/, no /web/ subdir#1032
alexey-milovidov merged 1 commit into
mainfrom
playground-index-redirect

Conversation

@alexey-milovidov

Copy link
Copy Markdown
Member

Before: playground/web/{index.html,app.js,style.css} were the canonical UI, served by the playground at /ui/. To make GitHub Pages serve the same UI at https://benchmark.clickhouse.com/ playground/ (index.html precedence over auto-rendered README.md), we needed EITHER a duplicate copy of index.html at playground/ OR symlinks — GitHub Pages doesn't reliably follow symlinks and duplication rots.

Move index.html + app.js + style.css to playground/ (the parent). The relative refs <link href="style.css"> / <script src="app.js"> already resolve correctly at both /playground/ (GitHub Pages) and /ui/ (playground server, which the server code now points at the new location).

Server change: the /ui/ static routes now explicitly whitelist index.html + app.js + style.css so README.md / INSTALL.md / docs/ under playground/ don't accidentally leak at /ui/README.md etc.

The app.js API-base fallback (previous commit) already handles cross-origin fetches when loaded from benchmark.clickhouse.com or any other host.

Before: playground/web/{index.html,app.js,style.css} were the
canonical UI, served by the playground at /ui/. To make GitHub
Pages serve the same UI at https://benchmark.clickhouse.com/
playground/ (index.html precedence over auto-rendered README.md),
we needed EITHER a duplicate copy of index.html at playground/
OR symlinks — GitHub Pages doesn't reliably follow symlinks and
duplication rots.

Move index.html + app.js + style.css to playground/ (the parent).
The relative refs `<link href="style.css">` / `<script src="app.js">`
already resolve correctly at both /playground/ (GitHub Pages) and
/ui/ (playground server, which the server code now points at the
new location).

Server change: the /ui/ static routes now explicitly whitelist
index.html + app.js + style.css so README.md / INSTALL.md / docs/
under playground/ don't accidentally leak at /ui/README.md etc.

The app.js API-base fallback (previous commit) already handles
cross-origin fetches when loaded from benchmark.clickhouse.com or
any other host.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@alexey-milovidov alexey-milovidov self-assigned this Jul 22, 2026
@alexey-milovidov
alexey-milovidov merged commit 0b10e0a into main Jul 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant