-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
115 lines (104 loc) · 1.88 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
// nut content fix -> https://github.com/nuxt/content/issues/1551#issuecomment-1470246543
import { globSync } from 'glob'
const contentRoutes = globSync('./content/**/*.md', {
ignore: ['content/index.md', 'content/**/_*.md'],
}).map((path) => path.slice(7, -3))
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
nitro: {
preset: 'static',
prerender: {
routes: [...contentRoutes],
},
},
modules: [
'@pinia/nuxt',
'@nuxt/content',
'@nuxtjs/tailwindcss',
'@nuxtjs/google-fonts',
'nuxt-svgo',
'@vueuse/nuxt',
'@nuxt/image',
],
svgo: {
componentPrefix: 'i',
},
image: {
dir: 'assets/img',
screens: {
sm: 640,
md: 768,
lg: 1200,
},
},
googleFonts: {
families: {
Jost: {
wght: '400..600',
ital: [500],
},
},
preload: true,
subsets: 'latin',
},
alias: {
pinia: '/node_modules/@pinia/nuxt/node_modules/pinia/dist/pinia.mjs', // fix pinia installation issue
},
app: {
pageTransition: {
name: 'fade',
mode: 'out-in',
},
rootId: 'whatphilipdoes',
head: {
meta: [
{
// to change safari interface to mono-950
hid: 'theme-color',
name: 'theme-color',
content: '#0d0d0d',
},
],
link: [
{
rel: 'icon',
href: '/favicon.ico',
sizes: '48x48',
},
{
rel: 'icon',
href: '/favicon.svg',
sizes: 'any',
type: 'image/svg+xml',
},
{
rel: 'mask-icon',
href: '/mask-icon.svg',
color: '#000000',
},
{
rel: 'apple-touch-icon',
href: '/apple-touch-icon.png',
},
{
rel: 'manifest',
href: '/site.webmanifest',
},
],
bodyAttrs: {
// global background color (issue see app.vue)
class: 'bg-mono-950',
},
},
},
typescript: {
typeCheck: true,
},
devtools: {
enabled: true,
},
devServer: {
host: '0',
},
compatibilityDate: '2024-07-22',
})