Skip to content

Speed up CI build via nitro.prerender.concurrency - #5559

Draft
ZJvandeWeg wants to merge 1 commit into
mainfrom
zj-speed-up-prerender-ci
Draft

Speed up CI build via nitro.prerender.concurrency#5559
ZJvandeWeg wants to merge 1 commit into
mainfrom
zj-speed-up-prerender-ci

Conversation

@ZJvandeWeg

Copy link
Copy Markdown
Member

Summary

  • The Tests workflow's Build the forge step (npm run build:nuxt:skip-images) has consistently taken ~13.6 minutes across recent main runs.
  • Log analysis (job 90934536001 and others) showed ~11.4 of those minutes are spent in Nitro's prerender phase, rendering ~560 routes. The sum of every individual route's render time matched the phase's total wall-clock time almost exactly - i.e. routes were rendering strictly serially.
  • nuxt.config.ts's nitro.prerender block never set concurrency, so it was stuck at Nitro's default of 1.
  • Set concurrency: 10. Most of the per-route cost is async (content collection queries, SSR template rendering) rather than CPU-bound, so this can reasonably exceed the runner's core count (GH-hosted ubuntu-latest = 4 vCPUs).

Test plan

  • Verified locally that prerendering all routes completes successfully at concurrency: 10 (logged Prerendering 1069 routes and proceeded normally into the next build phase, no errors)
  • Confirm on this PR's own CI run that Build the forge completes faster than the ~13.6 minute baseline, and that nothing regresses (in particular, watch for any race condition in build-time route-collection helpers that assumed serial execution)

🤖 Generated with Claude Code

CI's "Build the forge" step in test.yml consistently spent ~11.4 of its
~13.6 minutes prerendering ~560 routes. Log analysis showed the sum of
individual route render times matched the phase's wall-clock time almost
exactly, meaning routes were rendering strictly serially - Nitro's
prerender concurrency defaults to 1 and nuxt.config.ts never overrode it.
Most of the per-route cost is async (content queries, template
rendering) rather than CPU-bound, so concurrency can safely exceed the
runner's core count.
@netlify

netlify Bot commented Aug 10, 2026

Copy link
Copy Markdown

Deploy Preview for flowforge-website ready!

Name Link
🔨 Latest commit fc52799
🔍 Latest deploy log https://app.netlify.com/projects/flowforge-website/deploys/6a7a14947c5ef4000882ad50
😎 Deploy Preview https://deploy-preview-5559--flowforge-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 62 (🔴 down 1 from production)
Accessibility: 96 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant