johnk
johnk
Explore posts from servers
NNuxt
Created by johnk on 9/10/2024 in #❓・help
How would I listen for a websocket message in Nuxt 3, for user initiated notifications to users?
Thanks! Should I worry about having two websocket clients open? I’m not familiar with the performance impact of websockets.
3 replies
NNuxt
Created by johnk on 8/30/2024 in #❓・help
Type is completely ignored in generated mjs, causes Nuxt #imports issues
Anyone can help?
2 replies
NNuxt
Created by johnk on 4/5/2024 in #❓・help
Set header from server middleware
Awesome, sounds like a plan! Thank you very much for your help, I really appreciate it!
5 replies
NNuxt
Created by johnk on 4/5/2024 in #❓・help
Set header from server middleware
Maybe I need to rethink my approach. My goal is to avoid calling retrieving directly from the kinde api in the client, and instead accessing it through my server, so I can more easily have fine tuned control, and to do that I need to store the token I retrieve, and I would like to avoid retrieving it again and again outright (I want to hide it essentially.) Do you think it could be more reasonable as a series of composables instead?
5 replies
NNuxt
Created by johnk on 4/5/2024 in #❓・help
Set header from server middleware
Thank you! How could I do this on the server side? e.g. from a server/api/xxx
5 replies
NNuxt
Created by johnk on 4/5/2024 in #❓・help
Set header from server middleware
Hmmm noted. I simply want to add the token with every request automatically, without having to $fetch the token outright every time I want it. The docs say that one of the use cases for server middleware is adding headers so I was going by that.
5 replies