-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathnuxt.config.ts
114 lines (99 loc) · 1.87 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
export default defineNuxtConfig({
modules: [
'@vueuse/nuxt',
'@nuxtjs/i18n',
'@nuxt/ui',
'@nuxt/content',
'@nuxt/image',
'nuxt-og-image',
'@nuxt/fonts',
'@nuxt/scripts',
],
imports: {
presets: [
{
from: 'vue-sonner',
imports: ['toast'],
},
],
},
devtools: {
enabled: true,
},
css: ['~/assets/style/main.css'],
site: {
url: 'https://canvas.hrcd.fr',
defaultLocale: 'en',
indexable: true,
},
colorMode: {
preference: 'dark',
fallback: 'dark',
},
content: {
renderer: {
anchorLinks: false,
},
studio: {
enabled: true,
dev: true,
},
},
mdc: {
highlight: {
theme: {
dark: 'github-dark',
default: 'github-dark',
light: 'github-light',
},
},
},
runtimeConfig: {
public: {
available: process.env.NUXT_PUBLIC_AVAILABLE,
meetingLink: process.env.NUXT_PUBLIC_MEETING_LINK,
},
private: {
resendApiKey: process.env.NUXT_PRIVATE_RESEND_API_KEY,
},
},
routeRules: {
'/': { isr: true, prerender: true },
},
future: {
compatibilityVersion: 4,
},
experimental: {
viewTransition: true,
},
compatibilityDate: '2025-01-05',
nitro: {
prerender: {
crawlLinks: true,
routes: ['/', '/writing', '/works', '/about', '/contact'],
},
},
i18n: {
locales: [
{ code: 'en', name: 'English', language: 'en-US', dir: 'ltr' },
{ code: 'fr', name: 'French', language: 'fr-FR' },
],
strategy: 'no_prefix',
defaultLocale: 'en',
baseUrl: '/',
vueI18n: '~/i18n.config.ts',
},
icon: {
customCollections: [
{
prefix: 'custom',
dir: './app/assets/icons',
},
],
clientBundle: {
scan: true,
includeCustomCollections: true,
},
provider: 'iconify',
},
})