I have been working on an app in NextJs but whenever I go to a new route or make a change and reload the page too see it, the app takes too long to compile.
I thought maybe it’s because of the modules I am using in my project or unnecessary imports.
So I started a new NextJs project from scratch. And I just ran it using npm run dev
and it’s still very slow to load the home page.
These are the logs:
✓ Starting…
✓ Ready in 3.4s
○ Compiling / …
✓ Compiled / in 75.8s (642 modules)
GET / 200 in 77205ms
✓ Compiled in 1184ms (294 modules)
○ Compiling /favicon.ico …
✓ Compiled /favicon.ico in 7.7s (345 modules)
GET /favicon.ico 200 in 7970ms
This is really slowing down my development speed.
Are these normal compilation times?