davestewart / nuxt-content-assets

Enable locally-located assets in Nuxt Content
https://npmjs.com/package/nuxt-content-assets
115 stars 8 forks source link

During SSG, content cache is not re-populated if Nuxt's `experimental.buildCache` is enabled. #88

Open JakeIsMeh opened 1 month ago

JakeIsMeh commented 1 month ago

If cache exists:

nuxt generate

Nuxt 3.13.2 with Nitro 2.9.7
ℹ Using Nitro server preset: static
ℹ [content-assets] Cleaning content-cache
ℹ [content-assets] Cache path: "node_modules/nuxt-content-assets/cache"
ℹ [content-assets] Creating source "content"
ℹ Running with compatibility version 4
✔ Restored Vue client and server builds from cache in 129ms.
ℹ Initializing prerenderer

If no cache exists (e.g. after running nuxi cleanup or the build cache is not enabled):

nuxt generate

Nuxt 3.13.2 with Nitro 2.9.7
ℹ Using Nitro server preset: static
ℹ [content-assets] Cleaning content-cache
ℹ [content-assets] Cache path: "node_modules/nuxt-content-assets/cache"
ℹ [content-assets] Creating source "content"
ℹ Running with compatibility version 4
+ ℹ [content-assets] Copied "content" assets:
+ [ OMITTED ]
ℹ Building client... 
[ OMITTED ]
ℹ ✓ built in 4.25s
✔ Client built in 4269ms
ℹ Building server...
ℹ ✓ built in 1.26s
✔ Server built in 1265ms
ℹ Initializing prerenderer