mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 18:30:35 +01:00
docs(nuxt.config): add compatibilityDate
This commit is contained in:
@@ -15,6 +15,7 @@ export default defineNuxtConfig({
|
|||||||
'@nuxt/ui-pro',
|
'@nuxt/ui-pro',
|
||||||
process.env.NUXT_GITHUB_TOKEN && ['github:nuxt/ui-pro/.docs#dev', { giget: { auth: process.env.NUXT_GITHUB_TOKEN } }]
|
process.env.NUXT_GITHUB_TOKEN && ['github:nuxt/ui-pro/.docs#dev', { giget: { auth: process.env.NUXT_GITHUB_TOKEN } }]
|
||||||
].filter(Boolean),
|
].filter(Boolean),
|
||||||
|
|
||||||
modules: [
|
modules: [
|
||||||
'@nuxt/content',
|
'@nuxt/content',
|
||||||
'@nuxt/fonts',
|
'@nuxt/fonts',
|
||||||
@@ -27,15 +28,18 @@ export default defineNuxtConfig({
|
|||||||
'nuxt-cloudflare-analytics',
|
'nuxt-cloudflare-analytics',
|
||||||
'modules/content-examples-code'
|
'modules/content-examples-code'
|
||||||
],
|
],
|
||||||
|
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
public: {
|
public: {
|
||||||
version: pkg.version
|
version: pkg.version
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
ui: {
|
ui: {
|
||||||
global: true,
|
global: true,
|
||||||
safelistColors: excludeColors(colors)
|
safelistColors: excludeColors(colors)
|
||||||
},
|
},
|
||||||
|
|
||||||
content: {
|
content: {
|
||||||
highlight: {
|
highlight: {
|
||||||
langs: [
|
langs: [
|
||||||
@@ -70,9 +74,11 @@ export default defineNuxtConfig({
|
|||||||
} : undefined
|
} : undefined
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
image: {
|
image: {
|
||||||
provider: 'ipx'
|
provider: 'ipx'
|
||||||
},
|
},
|
||||||
|
|
||||||
nitro: {
|
nitro: {
|
||||||
prerender: {
|
prerender: {
|
||||||
routes: [
|
routes: [
|
||||||
@@ -86,10 +92,12 @@ export default defineNuxtConfig({
|
|||||||
ignore: !process.env.NUXT_UI_PRO_PATH && !process.env.NUXT_GITHUB_TOKEN ? ['/pro'] : []
|
ignore: !process.env.NUXT_UI_PRO_PATH && !process.env.NUXT_GITHUB_TOKEN ? ['/pro'] : []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
routeRules: {
|
routeRules: {
|
||||||
'/components': { redirect: '/components/accordion', prerender: false },
|
'/components': { redirect: '/components/accordion', prerender: false },
|
||||||
'/dev/components': { redirect: '/dev/components/accordion', prerender: false }
|
'/dev/components': { redirect: '/dev/components/accordion', prerender: false }
|
||||||
},
|
},
|
||||||
|
|
||||||
componentMeta: {
|
componentMeta: {
|
||||||
exclude: [
|
exclude: [
|
||||||
'@nuxt/content',
|
'@nuxt/content',
|
||||||
@@ -110,10 +118,12 @@ export default defineNuxtConfig({
|
|||||||
exposed: false
|
exposed: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
cloudflareAnalytics: {
|
cloudflareAnalytics: {
|
||||||
token: '1e2b0c5e9a214f0390b9b94e043d8d4c',
|
token: '1e2b0c5e9a214f0390b9b94e043d8d4c',
|
||||||
scriptPath: false
|
scriptPath: false
|
||||||
},
|
},
|
||||||
|
|
||||||
hooks: {
|
hooks: {
|
||||||
// Related to https://github.com/nuxt/nuxt/pull/22558
|
// Related to https://github.com/nuxt/nuxt/pull/22558
|
||||||
'components:extend': (components) => {
|
'components:extend': (components) => {
|
||||||
@@ -126,15 +136,20 @@ export default defineNuxtConfig({
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
typescript: {
|
typescript: {
|
||||||
strict: false
|
strict: false
|
||||||
},
|
},
|
||||||
|
|
||||||
site: {
|
site: {
|
||||||
url: 'https://ui.nuxt.com'
|
url: 'https://ui.nuxt.com'
|
||||||
},
|
},
|
||||||
|
|
||||||
vite: {
|
vite: {
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
include: ['date-fns']
|
include: ['date-fns']
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
})
|
|
||||||
|
compatibilityDate: '2024-07-23'
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user