Open
Description
Is your feature request related to a problem? Please describe
Running @nuxt/content
with local content in dev mode is extremely slow, especially when working with larger documentation projects (such as nuxt.com docs). The initial load are very high. For example:
ℹ Using local storage from .data/hub nuxt:hub 12:31:27
➜ DevTools: press Shift + Alt + D in the browser (v2.4.1) 12:31:28
✔ Processed 13 collections and 169 files in 1558.89ms (149 cached, 20 parsed) @nuxt/content 12:31:30
ℹ Nuxt Icon server bundle mode is set to local 12:31:30
ℹ Running with compatibility version 4 nuxt 12:34:15
ℹ Compiled content/raw/dump.docs.sql in 1281.28ms nuxt 12:36:18
ℹ Compiled content/raw/dump.index.sql in 1284.33ms nuxt 12:36:18
ℹ Compiled content/raw/dump.landing.sql in 1281.55ms nuxt 12:36:18
ℹ Compiled content/raw/dump.support.sql in 1281.44ms nuxt 12:36:18
ℹ Compiled content/raw/dump.showcase.sql in 1281.49ms nuxt 12:36:18
ℹ Compiled content/raw/dump.designKit.sql in 1281.65ms nuxt 12:36:18
ℹ Compiled content/raw/dump.templates.sql in 1282.55ms nuxt 12:36:18
ℹ Compiled content/raw/dump.videoCourses.sql in 1282.92ms nuxt 12:36:18
ℹ Compiled content/raw/dump.agencies.sql in 1283.78ms nuxt 12:36:18
ℹ Compiled content/raw/dump.team.sql in 1283.39ms nuxt 12:36:18
ℹ Compiled content/raw/dump.deploy.sql in 1860.49ms nuxt 12:36:18
ℹ Compiled mdc-highlighter.mjs in 2682.06ms nuxt 12:36:19
ℹ Compiled runtime.vue-devtools-client.hmJKIF20zn8i9bEOgS18Nb4e35sP6p5RG11x1BfhUhU.js in 2680.69ms nuxt 12:36:19
✔ Nuxt Icon loaded local collection custom with 6 icons 12:36:19
ℹ Compiled types/imports.d.ts in 3022.12ms nuxt 12:36:19
ℹ Compiled router.options.mjs in 3903.64ms nuxt 12:36:20
ℹ Compiled content/raw/dump.blog.sql in 4885.83ms nuxt 12:36:21
ℹ Nuxt Icon client bundle consist of 111 icons with 68.38KB(uncompressed) in size 12:36:41
ℹ Compiled nuxt-icon-client-bundle.mjs in 24284.99ms nuxt 12:36:41
ℹ Compiled plugins.server.mjs in 50335.5ms nuxt 12:37:31
ℹ Compiled plugins.client.mjs in 63096.81ms nuxt 12:37:44
ℹ Compiled types/plugins.d.ts in 80163.8ms nuxt 12:38:01
✔ Vite client built in 11471ms 12:38:45
✔ Vite server built in 22610ms
This slowdown occurs just by attempting to run the nuxt.com website with the nuxt/docs
content locally, after 10 minutes, the first page still hasn’t loaded.
Describe the solution you'd like
- Significantly improve dev mode performance for large content projects.
- Reduce initial compilation to make local development smoother and more responsive.
Additional context
This performance issue severely impacts the developer experience, making it difficult to contribute or iterate on docs locally, and creating confusion (I initially thought my setup was broken). Any improvements here would have a major impact for contributors.