-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
116 lines (98 loc) · 3.06 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
import tailwindcss from '@tailwindcss/vite';
export default defineNuxtConfig({
site: {
url: 'https://georgenance.com',
name: 'George Nance',
description: 'George Nance is a software engineer, writer, and creator. He writes about software development, productivity, and personal growth.',
defaultLocale: 'en', // not needed if you have @nuxtjs/i18n installed
},
routeRules: {
'/delete-untracked-files-git': { redirect: '/articles/delete-untracked-files-git' },
'/being-productive-programmer-adhd': { redirect: '/articles/being-productive-programmer-adhd', },
'/latest': { redirect: '/articles' },
'/contact': { redirect: '/' },
'/write-more-css': { redirect: '/articles/write-more-css' },
'/dont-use-frontmatter-markdown-files-gatsby': { redirect: '/articles/dont-use-frontmatter-markdown-files-gatsby' },
},
css: ['~/assets/css/main.css'],
devtools: {
enabled: true,
timeline: {
enabled: true,
},
},
colorMode: {
preference: 'dark', // default value of $colorMode.preference
fallback: 'dark', // fallback value if not system preference found
storage: 'localStorage', // or 'sessionStorage' or 'cookie'
classSuffix: '-mode',
},
vite: {
plugins: [tailwindcss()],
},
modules: ["nuxt-icon", "@nuxtjs/google-fonts", "@nuxtjs/fontaine", "@nuxt/image", '@nuxtjs/seo', '@nuxtjs/color-mode', "@nuxt/content", // "@nuxthq/studio",
"@vueuse/nuxt", '@vueuse/motion/nuxt', 'nuxt-gtag'],
app: {
pageTransition: { name: "page", mode: "out-in" },
head: {
charset: "utf-8",
viewport: "width=device-width, initial-scale=1",
meta: [
{ name: 'theme-color', content: '#1e293b', media: '(prefers-color-scheme: dark)' },
{ name: 'theme-color', content: '#ffffff', media: '(prefers-color-scheme: light)' },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.png' },
],
htmlAttrs: {
lang: "en",
class: "h-full"
},
bodyAttrs: {
class: "antialiased text-slate-500 dark:text-slate-400 min-h-screen h-full dark:bg-slate-900 bg-white ",
},
},
},
content: {
preview: {
api: 'https://api.nuxt.studio',
gitInfo: {
name: 'georgenance.com',
owner: 'georgenance',
url: 'https://github.com/georgenance/georgenance.com'
}
},
build: {
markdown: {
// toc: {
// depth: 3,
// searchDepth: 3,
// },
remarkPlugins: {
'remark-reading-time': {}
},
highlight: {
theme: {
// Default theme (same as single string)
default: 'min-light',
dark: 'nord',
// Theme used if `html.sepia`
sepia: "monokai",
},
},
},
},
},
image: {
format: ['webp']
},
googleFonts: {
display: "swap",
families: {
Inter: [400, 500, 600, 700, 800, 900],
Merriweather: [400, 700],
'JetBrains Mono': [400, 500, 600, 700, 800, 900],
},
},
compatibilityDate: '2025-02-01',
});