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
{build:transpile: ['@askdoppler/nuxt']}}
{build:transpile: ['@askdoppler/nuxt']}}
to my
nuxt.config.ts
nuxt.config.ts
on the test app i'm trying the package on but it doesn't work either
i'm kinda lost if anyone has suggestions it'd be welcome
index.ts
index.ts
import module from "./module.js";export default module;
import module from "./module.js";export default module;