Next.js Discord

Discord Forum

Navigating time is too long. SSG, Server components.

Answered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
In my app when I navigate to about page, contact or plans page it take too long to navigate, as shown in the picture. I am using server components. And plans page is using "use client"

#help-forum
Answered by B33fb0n3
most of the time the dev env. is way more complex and because of that it takes longer to load. Can you try to build your app (next build) and then start your app (next start). Then you are in production and not in dev env. anymore. It should load pretty fast. When will you try it?
View full answer

4 Replies

@Asiatic Lion In my app when I navigate to about page, contact or plans page it take too long to navigate, as shown in the picture. I am using server components. And plans page is using "use client" <#1007476603422527558>
most of the time the dev env. is way more complex and because of that it takes longer to load. Can you try to build your app (next build) and then start your app (next start). Then you are in production and not in dev env. anymore. It should load pretty fast. When will you try it?
Answer
Asiatic LionOP
@B33fb0n3 Woww this really worked! Thank you so much. How to push this in production on vercel. I have my continious deployment set.
happy to help