-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
87 lines (87 loc) · 1.71 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devServer: {
https: {
key: './certificates/alfredom.dev.test-key.pem',
cert: './certificates/alfredom.dev.test.pem',
},
host: 'alfredom.dev.test',
},
experimental: {
typedPages: true,
},
ssr: true,
app: {
head: {
bodyAttrs: {
class: 'antialiased h-full',
},
},
pageTransition: { name: 'page', mode: 'out-in' },
layoutTransition: { name: 'page', mode: 'out-in' },
},
devtools: { enabled: true },
components: [
{
path: '~/components',
pathPrefix: false,
},
],
modules: [
// https://nuxt.com/modules/ui
'@nuxt/ui',
// https://fonts.nuxt.com/
'@nuxt/fonts',
// https://image.nuxt.com/
'@nuxt/image',
// https://i18n.nuxtjs.org/
'@nuxtjs/i18n',
],
colorMode: {
classSuffix: '',
storageKey: 'color-mode',
preference: 'system',
fallback: 'light',
},
fonts: {
families: [
{
name: 'Inter',
},
{
name: 'Gloria Hallelujah',
styles: ['normal'],
},
],
provider: 'google',
},
image: {
provider: 'imagekit',
imagekit: {
baseURL: 'https://ik.imagekit.io/alfredom',
},
},
i18n: {
lazy: false,
langDir: 'locales',
strategy: 'no_prefix',
locales: [
{
code: 'en',
iso: 'en-US',
name: 'English',
file: 'en.json',
},
{
code: 'es',
iso: 'es-MX',
name: 'Español',
file: 'es.json',
},
],
defaultLocale: 'en',
vueI18n: './i18n.config.ts',
baseUrl: 'https://alfredom.dev',
},
compatibilityDate: '2024-04-03',
});