-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
64 lines (59 loc) · 1.35 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
export default defineNuxtConfig({
nitro: {
prerender: {
failOnError: false,
crawlLinks: true, // Ensure all links are crawled
routes: ['/'] // Explicitly define routes to prerender
},
},
routeRules: {
'/': {
prerender: true,
// Add fallback handling
static: true
}
},
modules: [
'@nuxt/content',
'@nuxtjs/color-mode',
'@nuxtjs/tailwindcss',
'@tailwindcss/typography',
'@nuxt/icon', // https://icones.js.org/
],
// https://color-mode.nuxtjs.org
colorMode: {
preference: 'system', // default value of $colorMode.preference
fallback: '', // fallback value if not system preference found
hid: 'nuxt-color-mode-script',
globalName: '__NUXT_COLOR_MODE__',
componentName: 'ColorScheme',
classPrefix: '',
classSuffix: '',
storage: 'localStorage', // or 'sessionStorage' or 'cookie'
storageKey: 'nuxt-color-mode'
},
components: {
dirs: [
{
path: '~/components/atoms',
prefix: 'Atoms'
},
{
path: '~/components/molecules',
prefix: 'Molecules'
},
{
path: '~/components/organisms',
prefix: 'Organisms'
}
]
},
compatibilityDate: '2024-11-14',
css: ['~/assets/css/main.css'],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
})