Skip to content

perf: replace serve-static with sirv#683

Merged
yifancong merged 1 commit intomainfrom
serve_0107
Jan 8, 2025
Merged

perf: replace serve-static with sirv#683
yifancong merged 1 commit intomainfrom
serve_0107

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

@chenjiahan chenjiahan commented Jan 7, 2025

Summary

sirv is a very fast and lightweight alternative to serve-static.

And Rsbuild already uses sirv to serve static assets: https://github.com/search?q=repo%3Aweb-infra-dev%2Frsbuild%20sirv&type=code

Note that sirv@3 requires Node 18, so I use the 2.x version for Rsdoctor.

Related Links

https://www.npmjs.com/package/sirv

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 7, 2025

Deploy Preview for rsdoctor ready!

Name Link
🔨 Latest commit 494ee78
🔍 Latest deploy log https://app.netlify.com/sites/rsdoctor/deploys/677d362c7d3072000702fe82
😎 Deploy Preview https://deploy-preview-683--rsdoctor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@chenjiahan chenjiahan requested a review from yifancong January 7, 2025 14:17
@yifancong yifancong merged commit 3df021f into main Jan 8, 2025
@yifancong yifancong deleted the serve_0107 branch January 8, 2025 03:48
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.

2 participants