-
-
Notifications
You must be signed in to change notification settings - Fork 86
/
nuxt.config.ts
81 lines (80 loc) · 1.52 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
// devtools totally broken, not sure why
devtools: { enabled: false },
app: {
head: {
link: [{ rel: 'icon', type: 'image/svg', href: '/logo.svg' }],
},
},
runtimeConfig: {
public: {
siteUrl: '',
umamiHost: '',
umamiId: '',
},
browserlessApiKey: '',
github: {
clientId: '',
clientSecret: '',
},
session: {
name: 'nuxt-session',
password: '',
},
},
modules: [
'@nuxtjs/tailwindcss',
'@vueuse/nuxt',
'shadcn-nuxt',
'@nuxtjs/google-fonts',
'nuxt-auth-utils',
'@nuxtseo/module',
'@nuxt/content',
],
extends: ['nuxt-umami'],
appConfig: {
umami: {
version: 2,
ignoreLocalhost: true,
},
},
shadcn: {
prefix: 'Ui',
},
tailwindcss: {
viewer: false,
},
ogImage: {
debug: true,
compatibility: {
prerender: {
chromium: false,
},
},
},
hooks: {
'vite:extendConfig': (config, { isClient }) => {
if (isClient)
// @ts-expect-error it has alias of vue
config.resolve.alias.vue = 'vue/dist/vue.esm-bundler.js'
},
},
nitro: {
vercel: {
functions: {
maxDuration: 300, // 5mins maximum possible for Vercel Pro
},
},
},
googleFonts: {
families: {
Inter: '400..800',
},
},
site: {
name: 'vue0',
description: 'Generate Component with simple text prompts.',
defaultLocale: 'en',
},
})