Production is very slow #44813
Replies: 11 comments 12 replies
-
Got a link to the deployed app? |
Beta Was this translation helpful? Give feedback.
-
https://back-office-new.vercel.app
בתאריך יום ה׳, 12 בינו׳ 2023 ב-14:54 מאת Joseph <
***@***.***>:
… Got a link to the deployed app?
—
Reply to this email directly, view it on GitHub
<#44813 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXNWZQVIM2ISZYJBGGCUX73WR75J7ANCNFSM6AAAAAATZFJCBY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
There's a chunk in your project, which has a lot of unused JavaScript, could that be the problem? Check this Lighthouse report Having a file size of 414.6 KiB, where 353.4 KiB is unused, is not good. Are you importing Material UI correctly? It looks like the entire MUI is bundled into your application. It is thousands of unused JavaScript, that the browser has to download, and parse, to then do absolutely nothing with them. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thank you for your response.
…On Fri, 13 Jan 2023 at 18:13 Joseph ***@***.***> wrote:
Let us define, "slow", what are you experiencing exactly?
api calls to the db work very fast but in my deployed app is it slow
Perhaps the problem is that, either too much data is passing on every
request, locally this is not noticeable, or, that the cold start of your
API route is far too slow.
Since API routes work as serverless tasks, they cold start, only when a
request arrives, unless there was an instance already started.
Try to use @next/bundle-analyzer which will also analyse your server side
bundle, and see if your API routes are large, like more than 600kb is
perhaps already too much? Not sure, but do analyse it please. Post back
some results.
—
Reply to this email directly, view it on GitHub
<#44813 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXNWZQXHJCX2O6UWJ4V3A6TWSF5JRANCNFSM6AAAAAATZFJCBY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Checking in here... I get bad lighthouse perf because my LCP "loads" slow, however, that is because I have some small JS that should fade the image in and the image downloads quicker than the responsible JS... which for whatever reason takes from 1.5-5 seconds I'm located in Denmark, EU and have optic internet |
Beta Was this translation helpful? Give feedback.
-
Actually, slight bad from me there. I've measured this on company laptop and thus network. They might have some funky network stuff going on there. On my personal network it's much better. |
Beta Was this translation helpful? Give feedback.
-
Hello, I have the same problem. I looked here and the url https://back-office-new.vercel.app/ seems to be very fast, how did you solve the problem? |
Beta Was this translation helpful? Give feedback.
-
I struggled with Vercel for a week, and final solution is moving website to AWS, the performance is much better |
Beta Was this translation helpful? Give feedback.
-
What about Netlify. I deployed and host some of REACT Apps on Netlify. Without any delay those apps working. |
Beta Was this translation helpful? Give feedback.
-
The issue is due to SSR in Next.js, and the App Router tends to be somewhat slow. However, running npm run build followed by npm run start in a local environment will make it faster. |
Beta Was this translation helpful? Give feedback.
-
Hi, my app is not too big and does not have many dependencies.
I've deployed it on Vercel, however, it is really slow.
when i run "npm run build" & "npm run start" localy it runs way faster as i would expect.
I think i may have deployed it in a wrong way.
If anyone could help me i would really appreciate it.
Thanks (:
Beta Was this translation helpful? Give feedback.
All reactions