Skip to content

feat: public path fallback - #356

Closed
DanilaBeseda wants to merge 3 commits into
mainfrom
feat/publicPathFallback
Closed

DanilaBeseda wants to merge 3 commits into
mainfrom
feat/publicPathFallback

Conversation

@DanilaBeseda

Copy link
Copy Markdown

Added client.publicPathFallback - it lets the runtime switch to the next configured public path when an async chunk
fails to load, and stay on it for all later chunk loads on the page.

Details:

  1. Backup paths can be scoped to specific hosts (hosts: string | RegExp), matched against location.hostname.
  2. Every switch or exhaustion dispatches a typed window CustomEvent, so consumers can report failures to their own
    monitoring.
  3. Disabled by default, and has no effect in dev mode, SSR builds, or with moduleFederation.

@DanilaBeseda DanilaBeseda changed the title Add public path fallback feat: public path fallback Sep 7, 2026
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.

1 participant