Skip to content

Commit

Permalink
perf(build): build caches before pre-rendering contents
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Sep 16, 2022
1 parent d3e9aa7 commit e09f569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export default defineNuxtModule<ModuleOptions>({
)

if (!nuxt.options.dev) {
nitroConfig.prerender.routes.push('/api/_content/cache')
nitroConfig.prerender.routes.unshift('/api/_content/cache')
}

// Register source storages
Expand Down

0 comments on commit e09f569

Please sign in to comment.