-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.ts
76 lines (74 loc) · 1.29 KB
/
types.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
/**
* Plugin options.
*/
interface Options {
/**
* Base URI
* @default 'http://localhost/'
*/
hostname: string
/**
* Generated routes from vite-plugin-pages
* @default []
*/
routes: any[]
/**
* Array of i18n languages.
* Example: {
* defaultLanguage: 'fr'
* languages: ['fr', 'en', 'es']
* }
* @default undefined
*/
i18n?: {
defaultLanguage?: string
languages: string[]
}
/**
* Excluded routes paths
* @default []
*/
exclude: (string | RegExp)[]
/**
* File name
* @default 'sitemap'
*/
filename: string
/**
* Destination path
* @default 'public'
*/
dest: string
/**
* Change frequency option for sitemap
* @default 'daily'
*/
changefreq: string
/**
* Priority option for sitemap
* @default 1
*/
priority: number
/**
* Last modification option for sitemap
* @default new Date()
*/
lastmod: Date
/**
* Converts XML into a human readable format
* @default false
*/
readable: boolean
/**
* Is Nuxt.js style route naming
* @default false
*/
nuxtStyle: boolean
/**
* Allow robots crawl (in robots.txt file)
* @default true
*/
allowRobots: boolean
}
export type UserOptions = Partial<Options>
export interface ResolvedOptions extends Options {}