Skip to content

feat: add server.middlewareMode config#4614

Merged
chenjiahan merged 3 commits intomainfrom
middleware_mode_0220
Feb 20, 2025
Merged

feat: add server.middlewareMode config#4614
chenjiahan merged 3 commits intomainfrom
middleware_mode_0220

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Add a new server.middlewareMode config to explicitly distinguish the use case of using Rsbuild middewares to integrate with a custom server.

export default {
  server: {
    middlewareMode: true,
  }
};

The relevant documentation will be updated in the next PR.

Related Links

Inspiration from Vite: https://vite.dev/config/server-options.html#server-middlewaremode

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 20, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit df21560
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/67b732e2880ee500080f1508
😎 Deploy Preview https://deploy-preview-4614--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 42 (🔴 down 2 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

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

@chenjiahan chenjiahan merged commit d8e579e into main Feb 20, 2025
10 of 11 checks passed
@chenjiahan chenjiahan deleted the middleware_mode_0220 branch February 20, 2025 14:56
This was referenced Feb 21, 2025
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.

1 participant