Skip to content

Conversation

@jeremydw
Copy link
Member

@jeremydw jeremydw commented Dec 23, 2025

This feature allows plugins to define their own routes that go through the Vite server. Previously, the two ways a plugin could define routes were:

  1. For the site to manually import the plugin in the routes/... dir. (Compatible with the Vite server.)
  2. For the plugin to use configureServer and manually construct the routes and responses. (Not compatible with the Vite server.)
  • Add test for the SSG build.
  • Add a new useRouter that wraps useRequestContext.

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.

2 participants