Skip to content

Track build-time wiring for PPR pregenerated concrete-path registry #1861

@NathanDrake2406

Description

@NathanDrake2406

PR #1716 injects pregenerated concrete paths into dist/server/index.js during vinext deploy so the PPR fallback-shell guard can avoid serving placeholder shell HTML for known pregenerated routes whose exact cache entry is absent.

This works for the vinext deploy path, and PR #1716 adds coverage that the injected Worker entry hydrates the registry at module init.

Follow-up: decide whether this registry population should move into normal build/prerender finalization, or whether direct publication of build artifacts with Wrangler should be explicitly documented as unsupported for this feature.

Questions to resolve:

  • Should vinext build artifacts always include the concrete-path registry?
  • Is vinext deploy the only supported publication path for cacheComponents fallback-shell serving?
  • Do we need an E2E/direct-Wrangler test proving supported publication paths populate getRenderedConcreteUrlPathsForRoute(route.pattern)?

Refs #1359
Refs #1716

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions