csprance / nuxt3-pino

Pino Logger Nuxt3 module
9 stars 1 forks source link

'unable to determine transport target for "pino-pretty"' on SSR route #1

Closed fnacarellidev closed 7 months ago

fnacarellidev commented 7 months ago

I have the following routeRules and ssr config under nuxt.config.ts:

{
  "ssr": true,
    "routeRules": {
      "/": { "ssr:" false },
      "/foo": { "ssr": false },
    }
}

When I run an GET HTTP request to routes that has the ssr disabled, everything works as expected, but when I try making the same GET HTTP request on a route that has the ssr enabled I get the following response:

{
  "url":"/images/foo-bar",
  "statusCode":500,
  "statusMessage":"",
  "message":"unable to determine transport target for \"pino-pretty\"",
  "stack":""
}
fnacarellidev commented 7 months ago

I 'fixed' it by passing no transport if running on server side.