-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
108 lines (93 loc) · 1.8 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
import { defineNuxtConfig } from 'nuxt/config'
import { i18n } from './config/i18n'
export default defineNuxtConfig({
devtools: {
enabled: true,
},
// extends: [
// 'nuxt-seo-kit',
// ],
app: {
keepalive: true,
},
router: {
options: {
linkActiveClass: 'active',
linkExactActiveClass: 'active',
},
},
experimental: {
componentIslands: true,
viewTransition: false,
headNext: true,
},
components: [
'~/components/',
{
path: '~/components/shared',
prefix: 's',
},
],
modules: [
'@nuxt/icon',
'@nuxtjs/seo',
'@pinia/nuxt',
'@vueuse/nuxt',
'@nuxtjs/i18n',
// '@vite-pwa/nuxt',
'nuxt-headlessui',
'@nuxtjs/color-mode',
'@nuxtjs/tailwindcss',
'@pinia-plugin-persistedstate/nuxt',
],
ogImage: {
fonts: [
'Noto+Sans+Hebrew:400',
'Noto+Sans+Bengali:400',
'Noto+Sans+Thai:400',
// 'Noto+Sans+Kr:400',
'Noto+Sans+Georgian:400',
'Mukta+Vaani:400',
'Padauk:400',
'Roboto:400',
'Cairo:400',
'Khmer:400',
'Hind:400',
// add support: te, ta, si, or, ml, lo, kn, hy
],
},
i18n,
// pwa,
headlessui: {
prefix: 'Headless',
},
colorMode: {
hid: 'color-mode-script',
globalName: '__COLOR_MODE__',
storageKey: 'color-mode',
},
tailwindcss: {
configPath: 'tailwind.config.ts',
exposeConfig: false,
viewer: false,
},
runtimeConfig: {
public: {
baseURL: process.env.BASE_URL,
apiURL: process.env.API_URL,
pspdfKey: process.env.PSPDF_KEY,
googleClientId: process.env.GOOGLE_CLIENT_ID,
},
},
nitro: {
esbuild: {
options: {
target: 'esnext',
},
},
prerender: {
crawlLinks: false,
routes: ['/'],
},
},
})