Repository navigation
Task 019: Consolidate dev URL resolution helpers - #18
Merged
Merged
Conversation
6 tasks
Collaborator
Author
/ponytail-review
|
Igloczek
force-pushed
the
task/019-consolidate-dev-url-helpers
branch
from
June 30, 2026 12:03
1cb8e74 to
21c8961
Compare
Merge duplicated getResBaseURL() and getDevApiBaseURL() logic into a single cached helper in src/util/dev-base-url.ts. Update consumers to import the canonical function and reduce dev-api-base.ts to re-exports. Task 019 — audit finding #26.
Igloczek
force-pushed
the
task/019-consolidate-dev-url-helpers
branch
from
June 30, 2026 12:24
21c8961 to
75abb2b
Compare
Igloczek
added a commit
that referenced
this pull request
Aug 8, 2026
…pers Task 019: Consolidate dev URL resolution helpers
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.
Implements tasks/019-consolidate-dev-url-helpers.md from the ponytail audit backlog.
Goal
One function for resolving dev backend base URL instead of duplicated logic in two files.
Scope
getResBaseURL()(src/util-frontend.ts) andgetDevApiBaseURL()/fetchDevApi()(src/util/dev-api-base.ts) into a single module.localStorage.dev, and port behavior.Acceptance criteria
src/util/dev-api-base.tsdeleted or ≤10 LOC of re-exports.bun run dev) still loads API and static assets correctly.bun run lintpasses.bun run build:frontendsucceeds.Depends on
Nothing.
Verification
bun run lint bun run build:frontend rg "getResBaseURL|getDevApiBaseURL|fetchDevApi" srcAudit reference
Finding #26 — overlapping dev URL resolution.