Repository navigation
Sync URL fix, infrastructure docs, and AGENTS.md hard rules - #38
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 52 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
The sync worker was deployed as browserweb, but that worker no longer exists — the sync API was dead and every push would have failed with a 404. The worker is now deployed as 'browser' (D1 binding DB), and the app points at browser.bansify.workers.dev. docs/INFRASTRUCTURE.md records what lives where, because it has been forgotten twice: - Cloudflare account, the two D1 databases and their tables - workers: accounts (OAuth) and browser (sync), with the endpoint list - the browserweb Pages project behind browser.bansify.com - the registered OAuth client and its redirect URIs - four traps that already cost us: the extra browserweb worker, the host-less redirect URI, the consent page ending on a custom scheme, and Workers Builds being connected to a repo with no worker source
The sync API was lost once because a script was uploaded by hand and a later build replaced it. Rule 1 now makes that explicit: worker code lives in the repo and ships through Workers Builds, and a manual deploy is not finished until the code is in the repo and the exception is recorded.
The browser worker now has a Workers custom domain, so the app no longer depends on the workers.dev hostname. docs/INFRASTRUCTURE.md records the domain alongside the worker.
GothwadTech
force-pushed
the
chore/sync-url-and-infra-docs
branch
from
December 4, 2026 11:20
54f6ec6 to
82f6902
Compare
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.
1. The sync API was pointing at a dead worker
The sync worker was deployed as
browserweb, and that worker no longer exists in the account.SyncApiwas calling a URL that returns 404.The worker is now deployed as
browser(D1 bindingDB, subdomain enabled), and the app points athttps://browser.bansify.workers.dev.2.
docs/INFRASTRUCTURE.mdWritten because this has now cost us twice:
browserbrowserbrowserwebworker, the host-less redirect URI, the consent page ending on a custom scheme, Workers Builds connected to a repo with no worker source3.
AGENTS.mdNine hard rules, first one being the one that would have prevented this:
Others: no workflow edits without permission, fixed applicationId/client id, infrastructure changes update the docs in the same PR, real Room migrations, no secrets in logs, bot-verification invariants, ad blocker never blocks the main frame, history is never synced.
Honest note
browsercurrently has no build triggers configured (GET .../builds/workers/browser/triggersreturns[]), so nothing will overwrite the deploy today. The rule is still right: as soon as Workers Builds is connected, a hand-uploaded script disappears on the next push.