-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
59 lines (58 loc) · 1.04 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
pageTransition: {
name: 'page',
mode: 'out-in',
},
},
build: {
transpile: ['gsap'],
},
css: ['@/assets/scss/global.scss'],
gtag: {
id: 'GTM-5L4X6GD',
},
image: {
provider: 'sanity',
sanity: {
projectId: 'hcfjxht8',
},
},
modules: [
'nuxt-gtag',
'@nuxtjs/sanity',
'@nuxt/image',
'@nuxtjs/sitemap',
],
nitro: {
prerender: {
crawlLinks: true,
},
},
routeRules: {
'/img/**': { headers: { 'cache-control': `public,max-age=${365 * 24 * 60 * 60},s-maxage=${365 * 24 * 60 * 60}` } },
},
runtimeConfig: {
public: {
baseUrl: 'https://marloncastillo.dev',
}
},
sanity: {
projectId: 'hcfjxht8',
apiVersion: '2023-06-07',
},
ssr: true,
typescript: {
shim: false,
},
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: '@use "@/assets/scss/_bootstrap.scss" as c;'
}
}
}
},
})