Skip to content

refactor: remove unused assets, move remaining assets out of payload packages #12874

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

Merged
merged 3 commits into from
Jun 23, 2025

Conversation

AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented Jun 19, 2025

This PR removes the packages/payload/src/assets folder for the following reasons:

  • they were published to npm. Removing this decreases the install size of payload (excluding dependencies) from 6.22MB => 5.12MB, saving npm ≈100 GB in bandwidth every week 🎉
  • most assets were unused. The only used ones were moved to a different directory that does not get published to npm

This also updates some outdated asset URLs in our examples

…package
@AlessioGr AlessioGr enabled auto-merge (squash) June 23, 2025 16:32
@AlessioGr AlessioGr disabled auto-merge June 23, 2025 16:32
@AlessioGr AlessioGr enabled auto-merge (squash) June 23, 2025 16:32
@AlessioGr AlessioGr merged commit bb17cc3 into main Jun 23, 2025
224 of 231 checks passed
@AlessioGr AlessioGr deleted the refactor/assets branch June 23, 2025 23:23
Copy link
Contributor

🚀 This is included in version v3.44.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants