#NextJS 13 optimization

4 messages · Page 1 of 1 (latest)

mighty pebble
#

Hi, I am moving an application from Vite to NextJS 13, with Redux and MUI. The problem is that when it compiles, many times the PC freezes. I don't really know if it's because I have badly optimized my code, it's something of nextjs 13 or it's my own PC the problem.
The application only has a Navbar, Home and Footer. And Redux stores like the cart and some fake products loaded to show them on the page.

I noticed that when the application loads it says that it loads some modules and I saw numbers like 20000 modules, is this normal?

nocturne cargo
#

I am not sure whether that is normal. But have you tried to build it on any CI/CD platform? If that works, you can eliminate your device problem at least. Afterwards, we can dig a bit deeper to find out the exact reason.

mighty pebble
nocturne cargo
#

Github probably would be a good choice. You can build the app and probably upload to FTP or S3 to check the build. Or you can also use bash commands inside Github actions for advance use case.