-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow page load in production #3767
Comments
There shouldn't be any compiling in production mode. To run production: |
No, I am running following commands: |
? |
Can you post the My There's an open issue w/ slow compile time in dev mode: #3735 |
My |
Can you try: |
I tried, the loading time is the same, about 6s. It's basically the same thing that Not sure what can be the problem. Maybe i should get better droplet... However, thanks for the help. |
You are starting the app in development mode. Which is not optimized for production usage. In case you're using a custom server you need to set |
works perfectly, thanks! |
Hey guys,
I have a simple app built with next.js and react. Average initial time of loading pages in production is between 4-6s, which is like crazy, since loading data from external API takes about 200ms.
Below is example of page load that doesn't even make request to external API:
DONE Compiled successfully in 6043ms12:51:07 AM
I have basic droplet on VPN (5$ / month) and i used PM2 to serve this app.
Any ideas how to improve this ? Will using "now" speed it up ? Or buying better/faster droplet ?
As i said it is very basic app (i don't have hundreds of packages, no additional webpack config, nothing), so no really space for improvement there. But having this high loading time is unacceptable!
The text was updated successfully, but these errors were encountered: