Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor domain sharding and support bundle-manifest requests #288

Merged
merged 27 commits into from
Dec 17, 2024

Conversation

benjervis
Copy link
Contributor

Immediately after landing the domain sharding PR, I changed my mind about how it should work, partially driven by a desire to have the behaviour centralised into a package that can be imported by consuming services.

In this PR:

  • The sharding logic has been mostly moved to a new package, @atlaspack/domain-sharding
  • The sharding function now takes an absolute URL and applies the shards if necessary
  • The logic inside the JS Runtime has been reworked to use the new "just give me the whole URL" format
  • Sharding has been added to all usages of getBundleURL (after I found out that it wasn't being added to scope hoisting builds)

@benjervis benjervis requested a review from a team December 17, 2024 07:43
@benjervis benjervis merged commit ec9d013 into main Dec 17, 2024
17 checks passed
@benjervis benjervis deleted the refactor-domain-sharding branch December 17, 2024 11:15
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.

3 participants