-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
124 lines (115 loc) · 2.78 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
import { repositoryName } from './slicemachine.config.json'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: false },
app: {
head: {
title: 'Spread the Jelly',
htmlAttrs: {
lang: 'en'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content: 'An editorial resource & storytelling platform for every motherhood journey.'
},
{ name: 'format-detection', content: 'telephone=no' },
{ name: 'referrer', content: 'no-referrer-when-downgrade' },
{ name: 'robots', content: 'index, follow' },
],
link: [
{ rel: 'icon', type: 'image/png', href: '/favicon.png' },
{ rel: 'preconnect', href: 'https://prismic.io'},
{ rel: 'preconnect', href: 'https://images.prismic.io/spreadthejelly'},
]
}
},
css: [
'@/assets/scss/main.scss',
],
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: `
@import "@/assets/scss/globals/reset";
@import "@/assets/scss/globals/variables";
@import "@/assets/scss/globals/mixins";
@import "@/assets/scss/globals/typography";
@import "@/assets/scss/globals/global";
@import "breakpoint-sass/stylesheets/breakpoint";
@import "@/assets/scss/globals/wrappers";
@import "@/assets/scss/components/buttons";
`
}
}
}
},
modules: [
"@nuxtjs/prismic",
"nuxt-swiper",
"nuxt-svgo",
"nuxt-gtag"
],
gtag: {
id: "G-LDTYJ63JTB",
},
svgo: {
autoImportPath: "~/assets/svg",
},
prismic: {
endpoint: repositoryName,
preview: "/api/preview",
clientConfig: {
routes: [
{
type: "page",
uid: "home",
path: "/",
},
{
type: "page",
path: "/:uid",
},
{
type: "about",
path: "/about-us",
},
{
type: "contact",
path: "/contact",
},
{
type: "ask_jelly",
path: "/ask-jelly",
},
{
type: "ask_jelly_article",
path: "/ask-jelly/:uid",
},
{
type: "blog",
path: "/articles",
},
{
type: "blog_article",
path: "/articles/:uid",
},
{
type: "jelly_loves",
path: "/jelly-loves",
},
{
type: "jelly_loves_article",
path: "/jelly-loves/:uid",
}
]
}
},
runtimeConfig: {
gsapAuthToken: process.env.GSAP_AUTH_TOKEN,
}
})