+
Skip to content

perf(vite-plugin-nitro): remove server assets from build process #1656

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 1 commit into from
Mar 18, 2025

Conversation

brandonroberts
Copy link
Member

PR Checklist

Closes #

What is the new behavior?

Public assets were being bundled into the server build through the nitro.serverAssets build option, but were never exposed through storage. This removes server assets from the build process, decreasing the bundle size and overall build time. The public assets are still served when static file servers such as node are used.

analog-app build before was 4.77MB 1.1MB gzipped, and is now 3.1MB 685kb gzipped.

This should decrease memory usage also as the files are no longer bundled.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

[optional] What gif best describes this PR or how it makes you feel?

Copy link

netlify bot commented Mar 18, 2025

Deploy Preview for analog-docs ready!

Name Link
🔨 Latest commit 748b0ae
🔍 Latest deploy log https://app.netlify.com/sites/analog-docs/deploys/67d9a53372ec3700089d5029
😎 Deploy Preview https://deploy-preview-1656--analog-docs.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.

Copy link

netlify bot commented Mar 18, 2025

Deploy Preview for analog-ng-app ready!

Name Link
🔨 Latest commit 748b0ae
🔍 Latest deploy log https://app.netlify.com/sites/analog-ng-app/deploys/67d9a533a0cea70008048504
😎 Deploy Preview https://deploy-preview-1656--analog-ng-app.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.

Copy link

netlify bot commented Mar 18, 2025

Deploy Preview for analog-blog ready!

Name Link
🔨 Latest commit 748b0ae
🔍 Latest deploy log https://app.netlify.com/sites/analog-blog/deploys/67d9a533ed70720008480e2e
😎 Deploy Preview https://deploy-preview-1656--analog-blog.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.

Copy link

netlify bot commented Mar 18, 2025

Deploy Preview for analog-app ready!

Name Link
🔨 Latest commit 748b0ae
🔍 Latest deploy log https://app.netlify.com/sites/analog-app/deploys/67d9a53336cef00008d36244
😎 Deploy Preview https://deploy-preview-1656--analog-app.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.

@brandonroberts brandonroberts merged commit 5a148d7 into beta Mar 18, 2025
24 checks passed
@brandonroberts brandonroberts deleted the fix-nitro-server-assets branch March 18, 2025 17:04
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.

1 participant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载