-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
101 lines (101 loc) · 2.29 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
export default defineNuxtConfig({
modules: [
'@nuxt/content',
'@nuxtjs/i18n',
'@nuxt/image',
'@vueuse/nuxt',
'@unocss/nuxt',
'@nuxt/eslint',
'radix-vue/nuxt',
'@nuxtjs/seo',
],
css: [
'@unocss/reset/tailwind.css',
'~/assets/styles/main.css',
'~/assets/styles/markdown.css',
],
site: {
url: 'https://mkamadeus.dev',
name: 'mkamadeus.dev',
description: 'mkamadeus\' personal website.',
},
app: {
layoutTransition: { name: 'layout', mode: 'out-in' },
pageTransition: { name: 'page', mode: 'out-in' },
head: {
title: 'mkamadeus.dev',
viewport: 'width=device-width,initial-scale=1',
link: [{ rel: 'canonical', href: 'https://mkamadeus.dev/' }],
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' },
{ property: 'og:type', content: 'website' },
{ property: 'og:description', content: 'mkamadeus\' personal website.' },
{ property: 'og:title', content: 'mkamadeus.dev' },
{ property: 'og:url', content: 'https://mkamadeus.dev' },
{ property: 'og:locale', content: 'en_US' },
],
},
},
i18n: {
lazy: true,
langDir: './locales',
defaultLocale: 'en',
locales: [
{
code: 'en',
name: 'English',
file: 'en.yaml',
},
{
code: 'id',
name: 'Bahasa Indonesia',
file: 'id.yaml',
},
{
code: 'ja',
name: '日本',
file: 'ja.yaml',
},
{
code: 'ko',
name: '한국어',
file: 'ko.yaml',
},
],
},
content: {
markdown: {
remarkPlugins: [
'remark-math',
],
rehypePlugins: {
'rehype-katex': {
output: 'html', // the default value is 'htmlAndMathml'
},
},
},
highlight: {
theme: 'github-dark',
preload: ['hcl', 'sh', 'bash', 'cpp', 'yaml', 'jsx', 'vue', 'json'],
},
},
devtools: {
enabled: true,
},
eslint: {
config: {
stylistic: true,
typescript: true,
},
},
nitro: {
prerender: {
autoSubfolderIndex: false,
routes: [
'/blogs',
],
},
},
})