Next.js Discord

Discord Forum

Extremely slow api routes in production

Unanswered
Asiatic Lion posted this in #help-forum
Open in Discord
Avatar
Asiatic LionOP
I have a pretty simple route to get an upload URL from s3. In dev, it's practically instant, but for some reason when deployed it's taking like 10 seconds. Does anyone have any ideas? I inspected, and it looks like most of the time is spent on "content download" which doesn't make sense to me...the response is an object with 2 properties that are just strings so it's extremely small.

Would appreciate any guidance.
Image

1 Reply

Avatar
Asiatic LionOP
Well, just did another one and that time all the time was on waiting for server response