-
Notifications
You must be signed in to change notification settings - Fork 3
/
nuxt.config.ts
93 lines (82 loc) · 2.23 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
import process from 'node:process'
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
css: ['@unocss/reset/tailwind.css', '@/assets/formkit.css'],
devtools: { enabled: true },
app: {
head: {
link: [{ rel: 'icon', type: 'image/jpeg', href: '/favicon.jpeg' }],
},
},
extends: ['nuxt-umami'],
appConfig: {
umami: {
ignoreLocalhost: true,
version: 2,
},
},
/**
* Modules
* @see https://modules.nuxtjs.org/?version=3.x
* ------------------------------------------------------------
* Vueuse
* @see https://vueuse.org/guide/
* ------------------------------------------------------------
* Unocss
* @see https://uno.antfu.me/
* ------------------------------------------------------------
* FormKit
* @see https://formkit.com/essentials/inputs
* ------------------------------------------------------------
*/
modules: [
'nuxt-build-cache',
'@nuxthub/core',
'@nuxtjs/turnstile',
'nuxt-icon',
'@unocss/nuxt',
'@nuxt/content',
'@nuxt/image',
'@vueuse/nuxt',
'@nuxtjs/seo',
'@formkit/nuxt',
'@nuxtjs/color-mode',
],
colorMode: {
classSuffix: '',
},
runtimeConfig: {
// !IMPORTANT: Nuxi doesn't seem to automatically inject at runtime
// Temporarily using process.env for now
public: {
umamiId: process.env.NUXT_PUBLIC_UMAMI_ID || '',
umamiHost: process.env.NUXT_PUBLIC_UMAMI_HOST || '',
turnstile: {
siteKey: process.env.NUXT_PUBLIC_TURNSTILE_SITE_KEY || '',
},
},
turnstile: {
secretKey: process.env.NUXT_TURNSTILE_SECRET_KEY || '',
},
},
site: {
url: 'https://christianpreston.com',
name: 'Christian Preston',
description: 'I’m a self-taught software developer based in Indianapolis, IN, with a passion for collaboration, building, contributing, and continuous learning. Explore my portfolio and experience in web development, software engineering, and more.',
defaultLocale: 'en',
},
ogImage: {
enabled: false,
},
image: {
domains: ['github.com', 'buymeacoffee.com'],
},
nitro: {
experimental: {
openAPI: true,
},
prerender: {
routes: ['/sitemap.xml'],
},
},
})