-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
84 lines (77 loc) · 1.79 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
// https://nuxt.com/docs/guide/directory-structure/nuxt.config#nuxt-config-file
export default defineNuxtConfig({
extends: ['github:ShadowRZ/bitfield-scaffold'],
app: {
baseURL: '/blog/',
head: {
meta: [
{
name: 'theme-color',
content: '#9D174D',
},
],
link: [
{
rel: 'icon',
href: '/favicon-16-16.png',
sizes: '16x16',
type: 'image/png',
},
{
rel: 'icon',
href: '/favicon-32x32.png',
sizes: '32x32',
type: 'image/png',
},
{
rel: 'apple-touch-icon',
href: '/apple-touch-icon.png',
},
{
rel: 'manifest',
href: '/blog/site.webmanifest',
},
],
},
},
typescript: {
strict: true,
},
devtools: { enabled: true },
modules: ['nuxt-feedme'],
colorMode: {
classSuffix: '',
},
nitro: {
prerender: {
autoSubfolderIndex: false, // XXX
},
},
feedme: {
feeds: {
'/feed.xml': { revisit: '6h', type: 'atom1', content: true },
'/feed.json': { revisit: '6h', type: 'json1', content: true },
},
content: {
feed: {
defaults: {
id: 'https://shadowrz.github.io/blog/',
title: '@ShadowRZ\'s Blog',
description: 'Where something happens.',
link: 'https://shadowrz.github.io/blog/',
},
},
item: {
query: {
path: '/posts',
sort: [{ date: -1 }],
where: [{ _partial: false }, { layout: { $ne: 'listing' } }],
},
mapping: [['link', '_path']],
templateRoots: [true, 'feedme'],
},
tags: [[/^(?=\/)/, 'https://shadowrz.github.io/blog']],
},
},
compatibilityDate: '2024-08-08',
})