-
Notifications
You must be signed in to change notification settings - Fork 12
/
nuxt.config.ts
56 lines (56 loc) · 1.12 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
export default defineNuxtConfig({
modules: [
'@nuxt/devtools',
'@nuxt/ui',
// TODO: relative url support: https://github.com/GoogleChromeLabs/critters/issues/115
// '@nuxtjs/critters',
'@nuxt/image',
'@nuxtjs/plausible',
'@vueuse/nuxt',
'@nuxt/fonts',
'@nuxt/eslint',
],
colorMode: {
preference: 'dark',
},
routeRules: {
'/themes': { redirect: 'https://nuxt.com/templates' },
'/templates': { redirect: 'https://nuxt.com/templates' },
},
future: { compatibilityVersion: 4 },
compatibilityDate: '2024-10-20',
nitro: {
prerender: {
routes: ['/', '/data/starters.json'],
},
},
vite: {
$client: {
build: {
rollupOptions: {
output: {
entryFileNames: '_nuxt/[name].[hash].js',
chunkFileNames: '_nuxt/[name].[hash].js',
},
},
},
},
},
typescript: { typeCheck: 'build', shim: false },
eslint: {
config: {
stylistic: true,
},
},
fonts: {
defaults: {
weights: [200, 300, 700],
},
},
image: {
screens: {
sm: 640,
lg: 1024,
},
},
})