Module middleware doesn't work in build mode
Hi, I'm trying to build a npm package that would plug into nuxt at the server-side level and watch every GET request to run some analytics
so far I've limited myself to just console logging to check if requests are intercepted in the right way
I don't understand why but everything works fine in dev mode, however as soon as I build not a single request is caught, i don't see the console logs anymore, it feels like the middleware is not packaged into the build
I've tried adding
i'm kinda lost if anyone has suggestions it'd be welcome
so far I've limited myself to just console logging to check if requests are intercepted in the right way
I don't understand why but everything works fine in dev mode, however as soon as I build not a single request is caught, i don't see the console logs anymore, it feels like the middleware is not packaged into the build
I've tried adding
{build:transpile: ['@askdoppler/nuxt']}} to my nuxt.config.ts on the test app i'm trying the package on but it doesn't work eitheri'm kinda lost if anyone has suggestions it'd be welcome
index.tsmodule.ts/runtime/middleware.ts