-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnitro.config.ts
42 lines (37 loc) · 1.19 KB
/
nitro.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
// https://nitro.unjs.io/config
export default defineNitroConfig({
alias: {
'~/': './',
},
compatibilityDate: '2025-03-01',
experimental: {
tasks: true,
},
routeRules: {
'/articles': { headers: { 'Access-Control-Allow-Origin': '*' } },
'/opml': { headers: { 'Content-Type': 'application/xml' } },
},
runtimeConfig: {
/** 订阅源 JSON 的 URL */
feedSource: 'https://gh.llkk.cc/https://github.com/xiyou-linuxer/website-2024/blob/main/docs/.vitepress/data/members.json',
/** 订阅源 JSON 的名称字段 */
nameKey: 'name',
/** 订阅源 JSON 的标签字段 */
tagKey: 'grade',
/** 订阅源 JSON 的订阅源字段 */
feedKey: 'feed',
/** 本网站的创建时间 */
timeEstablished: '2025-03-01',
/** 本 API 的构建时间 */
buildTime: new Date().toISOString(),
/** 订阅源列表的创建者 */
author: {
name: 'Xiyou Linux Group',
// email: '[email protected]',
homepage: 'https://www.xiyoulinux.com/',
},
},
scheduledTasks: {
'58 3-23/8 * * *': ['update'],
},
})