N
Nuxtβ€’9mo ago
Internetak

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 πŸ™
No description
4 Replies
manniL
manniLβ€’9mo ago
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
Unknown Userβ€’9mo ago
Message Not Public
Sign In & Join Server To View
manniL
manniLβ€’9mo ago
dev mode is a whole other story
manniL
manniLβ€’9mo ago
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...
Want results from more Discord servers?
Add your server