forked from devedmonton/DES-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
112 lines (98 loc) · 2.09 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
export default defineNuxtConfig({
// @nuxt/devtools
devtools: {
enabled: true,
},
experimental: {
headNext: true,
// server components
componentIslands: true,
},
runtimeConfig: {
mailChimp: {
apiKey: process.env.MAILCHIMP_API_KEY,
server: process.env.MAILCHIMP_SERVER ?? 'us20',
listId: process.env.MAILCHIMP_LIST_ID,
},
googleCalendarAPI: {
googleCalendarId: process.env.GOOGLE_CALENDAR_ID,
serviceAccountCredentialsJSON: process.env.GOOGLE_SERVICE_ACCOUNT_CREDENTIALS_JSON,
},
},
app: {
keepalive: true,
},
router: {
options: {
linkExactActiveClass: '',
linkActiveClass: '',
},
},
// route redirects
routeRules: {
'/bylaws': { redirect: 'https://docs.google.com/document/d/1i6oXabir-628csa2bQacHpc17Kmhec9EfkyHij9yQGM/edit' },
'/2021-survey': { redirect: 'https://docs.google.com/forms/d/e/1FAIpQLSeUyguShgoj6TZmqTboJN8qFVjKagrn1WRFvOuqDHqyGHEWeA/viewform?usp=sf_link' },
'/api/events': { cors: true },
},
// custom css
css: [
'~/assets/style.css',
],
// auto imports
imports: {
dirs: [
'./constants',
],
},
modules: [
'nuxt-icon',
'@nuxtjs/seo',
'@nuxt/image',
'@vueuse/nuxt',
'@nuxt/eslint',
'@nuxt/content',
'@nuxtjs/color-mode',
'@nuxtjs/tailwindcss',
'@nuxt/test-utils/module',
],
// @nuxtjs/seo
site: {
url: process.env.NUXT_PUBLIC_SITE_URL ?? 'https://devedmonton.com',
name: 'Dev Edmonton Society',
strictNuxtContentPaths: true,
},
ogImage: {
compatibility: {
prerender: {
chromium: false,
},
},
},
// @nuxt/image
image: {
imagekit: {
baseURL: 'https://ik.imagekit.io/des',
},
},
// @nuxt/eslint
eslint: {
config: {
stylistic: true,
},
},
// @nuxtjs/color-mode
colorMode: {
hid: 'color-mode-script',
globalName: '__COLOR_MODE__',
storageKey: 'color-mode',
preference: 'light',
classSuffix: '',
},
// server
nitro: {
compressPublicAssets: true,
prerender: {
crawlLinks: true,
},
},
})