-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
66 lines (66 loc) · 1.41 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
modules: [
'@nuxtjs/sitemap',
'@nuxt/ui',
'@nuxtjs/i18n',
'@nuxtjs/seo',
'nuxt-umami',
],
umami: {
id: 'e64eac9b-39ff-4e8c-a6f5-f2fcc63baf58',
host: 'https://umami.anttila.io',
autoTrack: true,
ignoreLocalhost: true,
excludeQueryParams: true,
trailingSlash: 'never',
},
i18n: {
vueI18n: './i18n.config.ts',
locales: [
{ code: 'en', language: 'en-UK' },
{ code: 'fi', language: 'fi-FI' },
],
defaultLocale: 'en',
pages: {
home: {
en: '/',
fi: '/',
},
}
},
colorMode: {
preference: 'system',
fallback: 'light',
},
site: {
name: 'Oulu University Food',
url: 'https://ouf.fi',
},
ui: {
global: true,
},
nitro: {
experimental: {
tasks: true,
},
scheduledTasks: {
// Run updateMenu every day at 6, 7, 8, 9 (UTC)
'0 6,7,8,9 * * *': ['updateMenu'],
// Run updatePrices every Monday at 08:00 (UTC)
'0 8 * * 1': ['updatePrices'],
// Run updateHours every other day at 10:00 (UTC)
'0 10 */2 * *': ['updateHours'],
}
},
runtimeConfig: {
dbUrl: 'mongodb://127.0.0.1:27017',
dbName: 'ou-lunch',
heroCoreUrl: '127.0.0.1:1818',
},
ogImage: {
enabled: false,
},
})