-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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(core): improve handling of server bundle #10429
Conversation
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site configuration. |
⚡️ Lighthouse report for the deploy preview of this PR
|
Size Change: +377 B (0%) Total Size: 11.6 MB ℹ️ View Unchanged
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Removed dependencies detected. Learn more about Socket for GitHub ↗︎ 🚮 Removed packages: npm/@argos-ci/playwright@1.9.3, npm/@mdx-js/react@1.0.1, npm/@netlify/functions@1.6.0, npm/@playwright/test@1.46.1, npm/cheerio@1.0.0 |
Motivation
While working on this PR, I discovered a few surprising facts so far:
website/build/server/assets/js
) and chunks were not removed from production deploymentsChanges I made:
website/build/server/*
instead ofwebsite/build/*
Test Plan
CI keeps working as before
No perf regression
DOCUSAURUS_KEEP_SERVER_BUNDLE=true yarn build:website:fast
works locally and keeps thewebsite/build/server
folderBenchmark
So far it doesn't seem to affect performance much, but I'll run this again before merging
Cold cache:
Warm cache:
hyperfine --warmup 1 --runs 5 'yarn build:website:fast' Main Benchmark 1: yarn build:website:fast Time (mean ± σ): 12.584 s ± 0.567 s [User: 19.326 s, System: 3.966 s] Range (min … max): 12.235 s … 13.581 s 5 runs Feat Benchmark 1: yarn build:website:fast Time (mean ± σ): 13.168 s ± 0.723 s [User: 20.047 s, System: 4.027 s] Range (min … max): 12.564 s … 14.162 s 5 runs
Test links
https://deploy-preview-10429--docusaurus-2.netlify.app/