Romain 'Maz' B.
Migration v2 to v3 increased the build time by 10+
Hi,
I was working on a Nuxt2 application.
For some reason, the project was forked and migrated to Nuxt3 few months ago.
Both project (Nuxt2 & Nuxt3) continued to receive updates.
As of today, the Nuxt2 application + a Laravel build is done in less than 2-3 minutes while the Nuxt3 application only (I separated the Laravel app build in the CI/CD) takes an average time of 15-25 minutes and sometimes even more 45!
The applications aren't build on equivalent hardware configuration: 8Gb ram, 4vCPU.
I trying to improve the performance of the Nuxt3 build during the CI/CD, copying the old node_modules folder from the previous build to not redownload already installed package, using pi0/nuxt-build-cache package and so on...
Is that normal that a Nuxt3 build takes way more time to run than Nuxt2?
Here are some results information of the builds:
Some of these numbers are really weird like it take 6 minutes to prerender one route?!
10 replies
Nuxt content, load images from the assets dir?
Hi!
I am reorganizing all my project files and wanted to know if it would be possible to load image files from the assets folder from nuxt content?
This doesn't work, I tried with
~/assets
, @/assets
and so on...1 replies
What's the trick to dev/build from nuxt content package fetch from github?
Hi.
due to a bug inside the version I was using, I need to be on the really latest update so I modified my package json to use the github repository
"@nuxt/content": "github:nuxt/content#main"
but since I cannot run dev or build.
Here is the log:
2 replies
V8 running out of memory when building Nuxt
Hi!
Running a quite large app on a 8Gb ram VPS, my CI/CD pipelines started to fail earlier this day for no reason.
Looking at the free space of the VPS, there is ~3.5Gb free memory when running the pipeline and I modified the node option
max-old-space-size
to 3000.
I have absolutely no idea why this is happening so suddenly, does anyone have any clue that I may explore?1 replies