-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
98 lines (97 loc) · 2.33 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
import transformerDirective from '@unocss/transformer-directives'
export default defineNuxtConfig({
modules: [
'@nuxt/content',
'@nuxt/image-edge',
'nuxt-icon',
'unplugin-icons/nuxt',
'nuxt-headlessui',
'@unocss/nuxt',
],
experimental: {
componentIslands: true,
},
runtimeConfig: {
// https://github.com/harlan-zw/nuxt-seo-kit#1-define-config
public: {
siteUrl: 'https://khuibeom.com',
siteName: 'Hui Beom',
siteDescription: 'Hi, I\'m Hui Beom. I\'m software developer from South Korea.',
language: 'en',
},
},
app: {
head: {
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'copyright', content: 'Hui Beom Kim' },
{ 'http-equiv': 'accept-ch', 'content': 'DPR' },
],
link: [
{ rel: 'apple-touch-icon', sizes: '180x180', href: '/favicon/apple-touch-icon.png' },
{ rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon/favicon-32x32.png' },
{ rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon/favicon-16x16.png' },
],
},
},
css: [
'@unocss/reset/tailwind.css',
'~/assets/css/font.css',
'~/assets/css/main.css',
],
ogImage: {
experimentalRuntimeBrowser: true,
},
// nitro: {
// serveStatic: true,
// },
ssr: true,
// @ts-expect-error defineNuxtConfig does not have unocss type
unocss: {
uno: true,
icons: true,
attributify: true,
shortcuts: [],
rules: [
[/^m-(\d+)$/, ([, d]: any) => ({ margin: `${d / 4}rem` })],
[/^p-(\d+)$/, (match: number[]) => ({ padding: `${match[1] / 4}rem` })],
],
theme: {
breakpoints: {
sm: '540px',
md: '740px',
},
},
transformers: [transformerDirective({ enforce: 'pre' })],
},
image: {
cloudinary: {
baseURL: 'https://res.cloudinary.com/dpdm96hjl/image/upload/v1670587534/khuibeom.com',
},
},
headlessui: {
prefix: 'Headless',
},
content: {
navigation: {
fields: ['icon'],
},
highlight: {
preload: [
'c',
'cpp',
'java',
],
// Theme used in all color schemes.
theme: 'github-dark',
},
// documentDriven: true,
markdown: {
toc: {
depth: 4,
searchDepth: 4,
},
},
},
})
// node-server