bridge
bridge copied to clipboard
String-based middleware is not resolved properly with Vite enabled
Environment
See reproduction...
Reproduction
https://stackblitz.com/edit/nuxt-bridge-test?file=nuxt.config.ts
Describe the bug
When enabling Vite, string-based middleware is not resolved correctly. This is especially problematic because it blocks projects using the auth module from upgrading to Bridge and therefore from preparing/upgrading to v3.
If there is a possibility to fix this with a Vite configuration (alias or something like that) it would be great to add it to the migration guide.
🙏🏽
Additional context
This problem does not occur when using Nuxt 2 + nuxt-vite or Nuxt Bridge without Vite.
Logs
No response