- Rewrote README.md to describe the Tibia Trade project, including features, setup instructions, technologies, and SEO keywords in Portuguese - Removed "Pagodera" from thank you page text for rebranding - Added role and aria-label to main element in home page for better accessibility - Added metadata generation with localized titles and descriptions to prices page for improved SEO and user experience
29 lines
751 B
TypeScript
29 lines
751 B
TypeScript
import { MetadataRoute } from "next";
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
const baseUrl = "https://tibiatrade.evandro.dev.br";
|
|
const locales = ["pt", "en"];
|
|
const pages = ["", "/market", "/sobre", "/precos", "/apoiar"];
|
|
|
|
const routes: MetadataRoute.Sitemap = [];
|
|
|
|
locales.forEach((locale) => {
|
|
pages.forEach((page) => {
|
|
routes.push({
|
|
url: `${baseUrl}/${locale}${page}`,
|
|
lastModified: new Date(),
|
|
changeFrequency: page === "" ? "daily" : "weekly",
|
|
priority: page === "" ? 1.0 : 0.8,
|
|
alternates: {
|
|
languages: {
|
|
pt: `${baseUrl}/pt${page}`,
|
|
en: `${baseUrl}/en${page}`,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
});
|
|
|
|
return routes;
|
|
}
|