Skip to content

Drop Firebase's catch-all rewrite - #57

Merged
weevilgenius merged 1 commit into
mainfrom
claude/project-thread-tkfohz
Oct 31, 2026
Merged

weevilgenius merged 1 commit into
mainfrom
claude/project-thread-tkfohz

Conversation

@weevilgenius

Copy link
Copy Markdown
Owner

Requested by Barry · project thread

Fixes item 8 from the Ponytail repo audit.

firebase.json rewrote every unknown path to /index.html. The game has no routes: seed codes use ?code=, the manifest's start_url is ., and the only history call clears the query. So the rewrite only mattered for files that don't exist, such as a page on an old build asking for a script the deploy removed. Those requests got HTML with status 200, which shows up as a confusing script error. They now get Firebase's plain 404.

  • firebase.json: removes rewrites.
  • firebase-hosting-merge.yml: adds firebase.json to the deploy paths, so a hosting config change deploys on its own.
  • AGENTS.md: lists firebase.json among the paths that deploy.

No version bump, since players see no change. The Firebase preview on this PR uses the new config, so / and /?code=… can be checked there, and a made-up path should 404.


Generated by Claude Code

The game has no routes (seed codes use ?code=), so the rewrite only
served index.html with status 200 for files that do not exist, such as
an old build's script. Missing files now get a plain 404. firebase.json
changes now trigger a deploy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SGfak3CRUUVwG8x6w8D3gr
@weevilgenius weevilgenius self-assigned this Oct 31, 2026
@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 75cbb78):

https://stumped-game--pr57-claude-project-threa-961oaaac.web.app

(expires Sat, 07 Nov 2026 14:54:56 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: dfc2bf844eeac82ebd1846d84aacfdcd42e42a2f

@weevilgenius
weevilgenius merged commit 4ca77be into main Oct 31, 2026
2 checks passed
@weevilgenius
weevilgenius deleted the claude/project-thread-tkfohz branch October 31, 2026 18:15
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.

2 participants