-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnuxt.config.ts
124 lines (123 loc) · 2.86 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
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
unlighthouse: {
scanner: {
// simulate a desktop device
device: 'desktop'
}
},
security: {
corsHandler: false,
headers: false
},
nitro: {
storage: {
logs: {
driver: 'vercelKV',
base: 'incubrain'
}
},
devStorage: {
logs: {
driver: 'fs',
base: './public/logs'
}
},
},
app: {
layoutTransition: { name: 'layout', mode: 'out-in' },
pageTransition: { name: 'page', mode: 'out-in' },
head: {
// link: [
// { rel: 'stylesheet', href: '' }
// ],
script: [
// Insert your Google Tag Manager Script here
// {
// src: 'https://js.stripe.com/v3/',
// async: true,
// type: 'text/partytown'
// },
// {
// src: 'https://connect.facebook.net/en_US/sdk.js',
// async: true,
// type: 'text/partytown'
// }
]
}
},
css: ['/assets/css/tailwind.css'],
imports: {
dirs: ['stores', 'data', 'utils']
},
typescript: {
shim: false,
tsConfig: {
exclude: ['node_modules', 'dist'],
compilerOptions: {
strict: true,
types: ['@sentry/vue']
},
module: 'esnext'
}
},
routeRules: {
// all routes (by default) will be revalidated every 60 seconds, in the background
'/**': { isr: 60 },
// Don't add any /app/** URLs to the sitemap.xml, app renders on client side.
'/app/**': { index: false, ssr: false, isr: false }
},
modules: [
'@nuxthq/ui',
'@nuxt/content',
'@nuxtjs/partytown',
'@nuxt/devtools',
'@nuxt/image',
'@unlighthouse/nuxt',
'nuxt-security',
'nuxt-simple-sitemap',
'@nuxtjs/supabase',
[
'@pinia/nuxt',
{
autoImports: ['defineStore', 'acceptHMRUpdate']
}
]
],
partytown: {
// For google analytics
forward: ['dataLayer.push']
},
runtimeConfig: {
// Keys within public, will be also exposed to the client-side
public: {
siteUrl: process.env.NUXT_PUBLIC_SITE_URL || 'http://localhost:3000',
SUPABASE_URL: process.env.SUPABASE_URL,
SUPABASE_KEY: process.env.SUPABASE_KEY,
LOG_ENV: process.env.LOG_ENV
},
// The private keys which are only available within server-side
SUPABASE_SERVICE_KEY: process.env.SUPABASE_SERVICE_KEY
},
build: {
transpile: ['']
},
ssr: true,
ui: {
icons: ['mdi', 'heroicons', 'material-symbols']
},
content: {
// Nuxt content options
highlight: {
// Theme used in all color schemes.
theme: {
// Default theme (same as single string)
default: 'github-dark',
// Theme used if `html.dark`
dark: 'github-light',
// Theme used if `html.sepia`
sepia: 'monokai'
}
}
}
})