-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
91 lines (81 loc) · 2 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
import type { BundledTheme } from "shiki";
import generateSitemap from "./scripts/generate-sitemap";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
'@nuxt/content',
'@nuxthq/studio',
"@nuxt/image",
"@nuxt/icon",
"nuxt-gtag",
"nuxt-jsonld"
],
icon: {
customCollections: [
{ prefix: 'tai', dir: './assets/my-icons' }
]
},
app: {
head: {
htmlAttrs: {
lang: 'ja', prefix: 'og: https://ogp.me/ns#'
},
meta: [
{
name: 'viewport',
content: 'width=device-width, initial-scale=1'
},
{ property: 'og:type', content: 'website' },
{ property: 'og:site_name', content: 'taichanのサイト' },
{ property: 'og:image', content: 'https://taichan.site/default-ogp.png', },
{ property: 'twitter:image', content: 'https://taichan.site/default-ogp.png' },
{ property: 'twitter:card', content: 'summary_large_image' },
]
}
},
content: {
highlight: {
theme: {
default: 'one-light' as BundledTheme,
"theme-light": "one-light" as BundledTheme,
"theme-dark": "solarized-dark",
},
langs: ['js','ts','jsx','tsx','json','json5','vue','css','html','vue','shell','bash','zsh','ruby','yml','docker','bat','csharp','sql','diff','erb','md','ps','sass',]
},
},
runtimeConfig: {
public: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000',
}
},
vite: {
build: {
target: ['es2022', 'edge89', 'firefox89', 'chrome89', 'safari15']
},
},
nitro: {
esbuild: {
options: {
target: 'es2022'
}
},
prerender: {
crawlLinks: true,
routes: [
'/',
'/about',
'/blog',
'/blog/tags',
'/news',
'/docs',
'/links',
'/404.html',
]
},
hooks: {
compiled: generateSitemap
}
},
compatibilityDate: '2024-07-13',
})