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