Api request in nuxt takes too long to process
Hello,
I have a problem where I have api call that takes few ms to process (I made custom handler to get the final time) and on localhost it's pretty fast (even it takes about 30ms) but after building and running on production, Chrome says that the waiting for server response takes about 300-500ms every time. Servers has a lot of available resources and i can't find anything what could slow it down that much. Is there anything in nuxt that could do that?
Thank you for any help π
4 Replies
hard to say without the actual code.
Feel fre to provide a reproduction π
Be aware that you can also use SWR for caching, which bring the time down to sub-100 ms
Unknown Userβ’10mo ago
Message Not Public
Sign In & Join Server To View
dev mode is a whole other story
GitHub
Having issues with slow responses with
nuxi dev
Β· Issue #209 Β· nu...Starting with the 3.7.0 release of the nuxi CLI, we added a security fix to prevent exposing the dev server port to the local-area network by default, limiting its access to your computer only. Ini...