Next.js Discord

Discord Forum

Extremely slow api routes in production

Asiatic Lion posted this in #help-forum
Open in Discord
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.

1 Reply

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