feat: implement dynamic categories, admin category CRUD, fix routing and cleanup
This commit is contained in:
+7
-7
@@ -8,12 +8,12 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||
// Static routes
|
||||
const staticRoutes = [
|
||||
'',
|
||||
'/apartlar',
|
||||
'/restoranlar',
|
||||
'/isletmeler',
|
||||
'/isletme-ekle',
|
||||
'/iletisim',
|
||||
'/hakkinda'
|
||||
'/aparts',
|
||||
'/restaurants',
|
||||
'/businesses',
|
||||
'/add-business',
|
||||
'/contact',
|
||||
'/about'
|
||||
]
|
||||
|
||||
const sitemapEntries: MetadataRoute.Sitemap = []
|
||||
@@ -55,7 +55,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||
for (const neighborhood of neighborhoods) {
|
||||
for (const locale of locales) {
|
||||
sitemapEntries.push({
|
||||
url: `${baseUrl}/${locale}/mahalle/${neighborhood.slug}`,
|
||||
url: `${baseUrl}/${locale}/neighborhood/${neighborhood.slug}`,
|
||||
lastModified: new Date(),
|
||||
changeFrequency: 'monthly',
|
||||
priority: 0.4,
|
||||
|
||||
Reference in New Issue
Block a user