Skip to content

Commit

Permalink
Add other languages to sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
razzeee committed Jul 26, 2024
1 parent 2008c13 commit 2fbcb0b
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions frontend/next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,65 @@
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: process.env.NEXT_PUBLIC_SITE_BASE_URI || "https://flathub.org",
alternateRefs: [
{
href: "https://flathub.org",
hreflang: "en",
},
...[
"en",
"en-GB",
"de",
"fr",
"nb-NO",
"tr",
"fi",
"id",
"pl",
"pt-BR",
"it",
"ru",
"si",
"vi",
"ar",
"es",
"ja",
"cs",
"zh-Hans",
"bg",
"uk",
"et",
"ca",
"el",
"ta",
"fa",
"hi",
"bn",
"eo",
"lt",
"hr",
"be",
"hu",
"nl",
"pt",
"zh-Hant",
"oc",
"da",
"az",
"he",
"ro",
"hy",
"ko",
"sv",
"pa",
"sq",
"ia",
"ckb",
].map((language) => ({
href: `https://flathub.org/${language}`,
hreflang: language,
})),
],
generateRobotsTxt: true,
exclude: ["/server-sitemap-index.xml"],
robotsTxtOptions: {
Expand Down

0 comments on commit 2fbcb0b

Please sign in to comment.