-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
51 lines (51 loc) · 1.02 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: true,
srcDir: "src",
app: {
head: {
htmlAttrs: {
lang: 'en'
},
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
},
modules: [
"@nuxt/eslint",
"@nuxt/fonts",
"@nuxt/image",
"@nuxtjs/tailwindcss",
"@nuxtjs/prismic",
"@pinia/nuxt",
],
css: ["~/assets/styles/global.css"],
tailwindcss: {
cssPath: "~/assets/styles/global.css",
},
prismic: { endpoint: 'giga-potpot-site' },
typescript: {
strict: true,
typeCheck: true,
},
nitro: {
prerender: {
routes: ['/', '/products', '/products/**']
}
},
routeRules: {
'/': { isr: 3600 }, // revalidate every hour
'/products': { isr: 3600 },
'/products/**': { isr: 3600 },
'/**': {
headers: {
'Cache-Control': 'max-age=3600, s-maxage=3600'
}
}
},
build: {
transpile: ['gsap'],
},
devtools: { enabled: true },
});