-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next-sitemap.js
59 lines (54 loc) · 1.23 KB
/
next-sitemap.js
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
/** @type {import('next-sitemap').IConfig} */
const redirects = require("./test.json");
const siteUrl = "https://www.ukraine-hilfe-sachsen.info";
module.exports = {
siteUrl,
generateRobotsTxt: true, // (optional)
hrefIsAbsolute: false,
autoLastmod: false,
additionalPaths: async (config) =>
redirects.map((red) => ({
loc: siteUrl + red.source_de,
// locale: "de",
// hreflang: "de",
// hrefIsAbsolute: true,
changefreq: "daily",
priority: 0.5,
// lastmod: new Date().toISOString(),
alternateRefs: [
{
locale: "en",
hreflang: "en",
href: siteUrl + red.source_en,
hrefIsAbsolute: true,
},
{
locale: "uk",
hreflang: "uk",
href: siteUrl + red.source_uk,
hrefIsAbsolute: true,
},
{
locale: "ru",
hreflang: "ru",
href: siteUrl + red.source_ru,
hrefIsAbsolute: true,
},
],
})),
alternateRefs: [
{
href: siteUrl + "/en",
hreflang: "en",
},
{
href: siteUrl + "/uk",
hreflang: "uk",
},
{
href: siteUrl + "/ru",
hreflang: "ru",
},
],
// ...other options
};