Skip to content

Support hostname-specific fallbacks - #150

Open
ting-hong-shieh wants to merge 1 commit into
cloudflare:mainfrom
ting-hong-shieh:feat/hostname-fallbacks
Open

Support hostname-specific fallbacks#150
ting-hong-shieh wants to merge 1 commit into
cloudflare:mainfrom
ting-hong-shieh:feat/hostname-fallbacks

Conversation

@ting-hong-shieh

Copy link
Copy Markdown

Summary

Adds optional hostnames to fallback registry configurations and selects fallbacks using the incoming request hostname. Multiple configurations can match the same hostname, preserving the existing ordered fallback behavior.

Configurations without hostnames remain default fallbacks. Existing configurations therefore keep their current behavior, while deployments with multiple registry domains can route each domain to its corresponding backend.

The README includes JSONC and TOML configuration examples.

Fixes #81

Validation

  • pnpm test (58 tests)
  • pnpm run typecheck
  • pnpm run lint
  • pnpm run format:check

@ting-hong-shieh
ting-hong-shieh marked this pull request as ready for review August 13, 2026 10:58
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.

New Feature Request: support multi fallbacks

1 participant