Skip to content

Commit

Permalink
fix: move build cache behind experimental flag
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 21, 2024
1 parent 33dbf38 commit 32d59b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default defineNuxtConfig({
'@nuxtjs/seo',
isProd && '@nuxtjs/plausible',
'@nuxt/ui',
'nuxt-build-cache',
],
ui: {
icons: [],
Expand Down
3 changes: 3 additions & 0 deletions cli/setup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export async function setupDocs(docsDir, opts = {}) {
build: {
transpile: [appDir],
},
modules: [
docsconfig.buildCache ? 'nuxt-build-cache' : undefined,
].filter(Boolean),
// @ts-ignore
docs: docsconfig,
// @ts-ignore
Expand Down
1 change: 1 addition & 0 deletions schema/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface DocsConfig {
themeColor?: string
redirects?: Record<string, string>
automd?: any
buildCache?: boolean
landing?:
| false
| {
Expand Down
4 changes: 4 additions & 0 deletions schema/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
"type": "boolean",
"description": "Enable integration with https://automd.unjs.io"
},
"buildCache": {
"type": "boolean",
"description": "Enable build cache (experimental)"
},
"redirects": {
"description": "Redirects for the documentation site.",
"type": "object",
Expand Down

0 comments on commit 32d59b6

Please sign in to comment.