NuxtN
Nuxt2y ago
2 replies
Artist201

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 ?
image.png
Was this page helpful?