-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
96 lines (84 loc) · 1.74 KB
/
nuxt.config.ts
File metadata and controls
96 lines (84 loc) · 1.74 KB
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
import svgLoader from 'vite-svg-loader';
import tailwindcss from '@tailwindcss/vite';
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
css: ['./assets/main.css'],
runtimeConfig: {
umamiEndpoint: 'https://analytics.subilan.win',
umamiUsername: '',
umamiPassword: ''
},
devServer: {
port: 3030
},
vite: {
plugins: [svgLoader(), tailwindcss()]
},
site: {
url: 'https://subilan.win',
name: 'SolitudeScroll'
},
modules: ['@nuxtjs/sitemap', '@nuxt/image', '@nuxt/fonts', 'nuxt-og-image'],
sitemap: {
sources: ['/api/get-post-urls']
},
nitro: {
prerender: {
crawlLinks: true,
routes: ['/sitemap.xml']
},
preset: 'static'
},
app: {
head: {
htmlAttrs: {
lang: 'zh'
}
}
},
ogImage: {
zeroRuntime: true,
defaults: {
// satori is not working at all at my needs.
// chromium is the only choice here.
renderer: 'chromium'
},
fonts: [
{ path: '/fonts/InterDisplay-Regular.ttf', name: 'Inter', weight: 400 },
{ path: '/fonts/InterDisplay-Bold.ttf', name: 'Inter', weight: 700 },
{ path: '/fonts/NotoSansSC-Regular.otf', name: 'NotoSansSC', weight: 400 },
{ path: '/fonts/NotoSansSC-Bold.otf', name: 'NotoSans', weight: 700 }
]
},
fonts: {
provider: 'local',
processCSSVariables: false,
families: [
{
name: 'Inter',
weight: 400,
src: '/fonts/InterDisplay-Regular.ttf',
global: true
},
{
name: 'Inter',
weight: 700,
src: '/fonts/InterDisplay-Bold.ttf',
global: true
},
{
name: 'NotoSansSC',
weight: 400,
src: '/fonts/NotoSansSC-Regular.otf',
global: true
},
{
name: 'NotoSansSC',
weight: 700,
src: '/fonts/NotoSansSC-Bold.otf',
global: true
}
]
}
});