N
Nuxt7mo ago
Mole

Nuxt Content Prerender takes long time

Hi! I am debugging our build pipeline which takes over 3 minutes for fairly small project (~500 components / 20ish pages). I have noticed the following in our docker build logs:
#14 78.35 [nitro] ℹ Initializing prerenderer
#14 99.64 [nitro] ℹ Prerendering 1 routes
#14 99.66 [nitro] ├─ /api/_content/cache.1718716099406.json (25ms)
#14 99.66 [nitro] ℹ Prerendered 1 routes in 21.148 seconds
#14 78.35 [nitro] ℹ Initializing prerenderer
#14 99.64 [nitro] ℹ Prerendering 1 routes
#14 99.66 [nitro] ├─ /api/_content/cache.1718716099406.json (25ms)
#14 99.66 [nitro] ℹ Prerendered 1 routes in 21.148 seconds
Nitro spent 21 seconds prerendering 1 content route. Upon inspection of the generated json file, it turns our to be basically empty:
{
"generatedAt": 1718716192115,
"generateTime": 20,
"contents": [

],
"navigation": [

]
}
{
"generatedAt": 1718716192115,
"generateTime": 20,
"contents": [

],
"navigation": [

]
}
What is this prerendering doing, is it necessairly? If not, can it be disabled?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server