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, if you wanted to write a plugin that creates routes and share that plugin across sites within a monorepo, you needed to manually add routes in the routes/... dir that load and provide the routes.

Now, a plugin can write its own routes to construct routes that go through the Vite server. So, plugins can create pages that use import.meta.glob, provide API routes, etc. without copying the routes into the project dir.

The idea is that plugins can be authored for common utilities like design system galleries, custom localization integrations, a custom issue tracker app, etc. -- all using the Vite server without copying the routes files.

  • Add integration tests for dev/prod mode.
  • Add tests to cover API routes too.

@jeremydw jeremydw requested a review from stevenle February 3, 2026 03:24
@jeremydw jeremydw marked this pull request as ready for review February 3, 2026 03:24
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