forked from narr07/websdteja2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
135 lines (130 loc) · 3.02 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* eslint-disable node/prefer-global/process */
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
modules: [
'@nuxt/ui',
'@nuxt/fonts',
'@nuxt/eslint',
'@nuxt/image',
'@nuxt/content',
'@nuxtjs/seo',
'@nuxtjs/cloudinary',
'@nuxthq/studio',
'@nuxt/scripts',
'@vueuse/motion/nuxt',
'nuxt-delay-hydration',
'@nuxtjs/web-vitals',
],
ui: {
global: true,
},
colorMode: {
preference: 'dark',
},
content: {
documentDriven: true,
navigation: {
fields: ['navTitle'],
},
markdown: {
anchorLinks: false,
},
highlight: {
theme: {
default: 'github-light',
dark: 'github-dark',
},
preload: ['json', 'js', 'ts', 'html', 'css', 'vue', 'diff', 'shell', 'markdown', 'yaml', 'bash', 'ini', 'c', 'cpp'],
},
},
icon: {
fetchTimeout: 2000, // 15 seconds
},
site: {
url: 'https://sdnteja2.sch.id/',
name: 'SDN TEJA 2',
description: 'Website resmi SDN Teja 2, Kecamatan Rajagaluh, Kabupaten Majalengka, Jawa Barat',
defaultLocale: 'id', // not needed if you have @nuxtjs/i18n installed
themeColor: '#F22727',
},
scripts: {
registry: {
// loads the script
googleAnalytics: true,
googleTagManager: true,
},
},
delayHydration: {
mode: 'mount',
},
runtimeConfig: {
public: {
scripts: {
googleAnalytics: {
id: process.env.GOOGLE_ANALYTICS_ID,
},
googleTagManager: {
id: process.env.GOOGLE_TAG_MANAGER_ID,
},
},
},
},
cloudinary: {
cloudName: process.env.CLOUDINARY_CLOUD_NAME,
apiKey: process.env.CLOUDINARY_API_KEY,
},
fonts: {
families: [
{
name: 'Montserrat',
provider: 'google',
weights: [200, 300, 400, 500, 600, 700, 800, 900], // Heading font
styles: ['normal', 'italic'],
},
{
name: 'Plus Jakarta Sans',
provider: 'google',
weights: [200, 300, 400, 500, 600, 700, 800, 900], // Body font
styles: ['normal', 'italic'],
},
],
},
studio: {
gitInfo: {
name: 'website',
owner: 'sdnteja2',
url: 'https://github.com/sdnteja2/website',
},
// enabled: true,
},
nitro: {
prerender: {
failOnError: false,
crawlLinks: true,
routes: [
'/',
'/guru',
'/berita',
'/artikel',
'/media',
'/kegiatan',
],
},
},
routeRules: {
'/': { prerender: true },
'/guru/**': { isr: true, prerender: true },
'/berita/**': { isr: true, prerender: true },
'/artikel/**': { isr: true, prerender: true },
'/guru': { isr: true, prerender: true },
'/berita': { isr: true, prerender: true },
'/artikel': { isr: true, prerender: true },
'/media': { ssr: false },
'/kegiatan': { isr: true, prerender: true },
},
app: {
pageTransition: { name: 'page', mode: 'out-in' },
},
})