Repository navigation
fix(server): serve SPA index.html for /debug/*wild routes (#1021) - #1024
Merged
Merged
Conversation
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
September 17, 2026 05:33
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors the frontend routing setup in the Go backend by extracting the SPA index.html serving logic into a reusable helper function. It then introduces a new '/debug/*wild' route to serve the SPA index.html, alongside the existing '/session/*wild' route. Corresponding unit tests have been added to verify that the new debug route correctly serves the index.html under both default and custom base path configurations. No review comments were provided, and the changes look clean and well-tested, so there is no additional feedback.
Merged
via the queue into
GoogleCloudPlatform:main
with commit Sep 17, 2026
797d801
17 checks passed
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
/debug/*wildas an SPA fallback route servingindex.htmlinSetupFrontendRoutes(pkg/server/server.go), alongside/session/*wild.index.htmlhandler into a sharedserveIndexHTMLclosure.pkg/server/server_test.gocovering/debug/task-graphboth with default root base path and with a custom server base path.Closes #1021