-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
77 lines (77 loc) · 2 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
export default defineNuxtConfig({
css: [
'~/assets/main.scss',
'~/assets/products.scss',
'~/assets/animation.scss',
'~/assets/labs.scss',
'~/assets/highcharts.scss',
],
devtools: { enabled: true },
app: {
head: {
htmlAttrs: {
lang: 'en',
},
title: 'Rami James - Product Designer',
charset: 'utf-8',
meta: [
{ name: 'author', content: 'Rami James' },
{ name: 'description', content: 'To delight with design & code, You must bring new ideas to life, A new way of thinking, a new way of doing.' }
],
}
},
components: {
global: true,
dirs: ['~/components'],
},
modules: [
'@nuxtjs/google-fonts',
'@pinia/nuxt',
'@nuxt/content',
"nuxt-newsletter",
"nuxt-calendly",
"@nuxtjs/sitemap",
"nuxt-module-hotjar",
"@nuxtjs/robots",
"nuxt-highcharts",
"nuxt-gtag",
"@nuxt/fonts"
],
gtag: {
id: 'G-N9MEGS1HSD'
},
hotjar: {
hotjarId: 5004344,
scriptVersion: 6,
},
newsletter: {
mailchimp: {
apiKey: process.env.MAILCHIMP_API_KEY,
serverPrefix: process.env.MAILCHIMP_SERVER_PREFIX,
audienceId: process.env.MAILCHIMP_AUDIENCE_ID,
component: true
}
},
googleFonts: {
families: {
'Host Grotesk': [400, 500, 600, 700],
'Roboto Sans': [400, 600, 700, 900],
},
preconnect: true,
preload: true,
},
plugins: ['~/plugins/spline-viewer.client.ts'],
vue: {
compilerOptions: {
isCustomElement: (tag) => {
return tag === 'spline-viewer';
}
}
},
routeRules: {
'/thoughts/on-ethical-pricing': { redirect: '/thoughts/how-to-make-product-decisions-based-on-business-needs' },
'/labs/css-mesh-gradients': { redirect: '/thoughts/css-mesh-gradients' },
'/labs/supabase-email-authentication-with-google-workspace': { redirect: '/thoughts/supabase-email-authentication-with-google-workspace' },
'/illustrations': { redirect: '/products/illustrations' },
},
})