Update routing in next.config.ts to redirect "/tercih-robotu" to the hero form, add simple-icons dependency in package.json, and enhance database indexing for improved query performance. Remove unused SVG files and update metadata across various pages for better SEO and clarity.
All checks were successful
Deploy / deploy (push) Successful in 14m14s
All checks were successful
Deploy / deploy (push) Successful in 14m14s
This commit is contained in:
40
src/app/sitemap.ts
Normal file
40
src/app/sitemap.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import type { MetadataRoute } from "next";
|
||||
import { SITE_URL } from "@/lib/seo";
|
||||
import { getAllBolumSlugs, getAllUniversiteSlugs } from "@/lib/katalog";
|
||||
import { getAllRehberler } from "@/lib/rehber";
|
||||
|
||||
// Bilinçli olarak sitemap DIŞI: /sonuc (noindex), /giris, /listem,
|
||||
// /odeme/sonuc, /rapor/yazdir (auth/utility sayfaları).
|
||||
const staticEntries: MetadataRoute.Sitemap = [
|
||||
{ url: `${SITE_URL}/`, priority: 1, changeFrequency: "weekly" },
|
||||
{ url: `${SITE_URL}/bolumler`, priority: 0.8, changeFrequency: "weekly" },
|
||||
{ url: `${SITE_URL}/universiteler`, priority: 0.8, changeFrequency: "weekly" },
|
||||
{ url: `${SITE_URL}/rehber`, priority: 0.8, changeFrequency: "weekly" },
|
||||
{ url: `${SITE_URL}/paket`, priority: 0.7, changeFrequency: "monthly" },
|
||||
{ url: `${SITE_URL}/meraklisina`, priority: 0.6, changeFrequency: "monthly" },
|
||||
{ url: `${SITE_URL}/iletisim`, priority: 0.3, changeFrequency: "yearly" },
|
||||
{ url: `${SITE_URL}/gizlilik`, priority: 0.2, changeFrequency: "yearly" },
|
||||
{ url: `${SITE_URL}/kosullar`, priority: 0.2, changeFrequency: "yearly" },
|
||||
];
|
||||
|
||||
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||
const bolumler: MetadataRoute.Sitemap = getAllBolumSlugs().map((slug) => ({
|
||||
url: `${SITE_URL}/bolum/${slug}`,
|
||||
priority: 0.7,
|
||||
changeFrequency: "monthly",
|
||||
}));
|
||||
const universiteler: MetadataRoute.Sitemap = getAllUniversiteSlugs().map(
|
||||
(slug) => ({
|
||||
url: `${SITE_URL}/universite/${slug}`,
|
||||
priority: 0.6,
|
||||
changeFrequency: "monthly",
|
||||
}),
|
||||
);
|
||||
const rehberler: MetadataRoute.Sitemap = getAllRehberler().map((y) => ({
|
||||
url: `${SITE_URL}/rehber/${y.slug}`,
|
||||
lastModified: y.tarih,
|
||||
priority: 0.7,
|
||||
changeFrequency: "monthly",
|
||||
}));
|
||||
return [...staticEntries, ...bolumler, ...universiteler, ...rehberler];
|
||||
}
|
||||
Reference in New Issue
Block a user