forked from devedmonton/DES-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
139 lines (124 loc) · 2.68 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
136
137
138
139
export default defineNuxtConfig({
modules: [
'@nuxt/icon',
'@nuxtjs/seo',
'@nuxt/image',
'@vueuse/nuxt',
'@nuxt/eslint',
'@nuxt/content',
'@nuxtjs/color-mode',
'@nuxtjs/tailwindcss',
'@nuxt/test-utils/module',
'@vite-pwa/nuxt',
],
// auto imports
imports: {
dirs: [
'./constants',
],
},
// @nuxt/devtools
devtools: {
enabled: true,
},
app: {
keepalive: true,
head: {
htmlAttrs: {
lang: 'en-CA',
},
},
},
// custom css
css: [
'~/assets/style.css',
],
router: {
options: {
linkExactActiveClass: '',
linkActiveClass: '',
},
},
// @nuxtjs/seo
site: {
url: process.env.NUXT_PUBLIC_SITE_URL ?? 'https://devedmonton.com',
name: 'Dev Edmonton Society',
strictNuxtContentPaths: true,
},
// @nuxtjs/color-mode
colorMode: {
hid: 'color-mode-script',
globalName: '__COLOR_MODE__',
storageKey: 'color-mode',
preference: 'light',
classSuffix: '',
},
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,
},
},
// 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 },
},
experimental: {
headNext: true,
// server components
componentIslands: true,
},
// server
nitro: {
compressPublicAssets: true,
prerender: {
crawlLinks: true,
},
},
// @nuxt/eslint
eslint: {
config: {
stylistic: true,
},
},
// @nuxt/image
image: {
imagekit: {
baseURL: 'https://ik.imagekit.io/des',
},
},
ogImage: {
compatibility: {
prerender: {
chromium: false,
},
},
},
// @vite-pwa
pwa: {
devOptions: {
enabled: false,
},
manifest: {
name: 'Dev Edmonton Society',
short_name: 'Dev Edmonton',
description: 'Dev Edmonton Society is a community of developers, designers, and tech enthusiasts in Edmonton, Alberta.',
theme_color: '#265DAD',
background_color: '#f5f5f5',
icons: [
{
src: '/apple-touch-icon.png',
sizes: '512x512',
type: 'image/png',
},
],
},
},
})