Environment variable not accessible on deployment
Am trying to use Pino with nuxt3
and thus I have declare it in a function at
server/utils/logger.ts
so the logger doesn't seem to initialize at the correct time "possibly" when deployed on Vercel. ( since it somehow is not able to read the enviroment variables )
though on local machine both using process.env
or runtimeconfig
works just fine.
any idea on how should I initialize my logger ?
1 Reply
note that i do access other variables successfully, but thos are accessed inside functions, and only when called.
i want this to be initiated with server start
hmmm, i am more than likely to believ now that the package of
@axion/pino
is getting deleted on tree shaking