IsaacR943
Cant make any logger work in a clean nuxt application
Update: I found out that the logger is only available for server directory - its pointless trying to log the front end or composables
The instructions above to add a library to the server and use something like a logger.server.ts file works, only for the server tho
Yes, i guess could write to a db each log instead of a file. However I will later connect a cron job to read any errors in the code - for that purpose writing to a db is no good. Cron jobs from uptime robot / cronitor can only read files
18 replies
Bun not found in nuxt application?
Thanks, will try throughout the day. - I've heard the
--bun
works for some people however is not my case.
The explanation I received from someone of the Nuxt team that contacted me for this error is that some process (possible a library) is using node - breaking the application and making the --bun
flag useless.
However he did not mentioned anything about how to identify what library was doing this lol.14 replies
layers a comprehensive guide
I will read the unjs docs and resolve my questions with gpt or kapa
Layers is one of the features in my opinion set nuxt apart from others. However my main concerns are:
- required additional optimization to 'deflate' the project
- breaking changes in nuxt 4 (btw everyone is waiting for this update ❤️ )
7 replies
Error deploying to fly.io
you will not like the answer but - after done my research it seems that layers add too much over head and even if you deploy the application you end up with a very heavy app (if you dont optimize each layer will have a similar weight and consume similar resources as a stand alone app would).
The solutions was to manually copy paste everything into folders at the destination
10 replies