feat: update product categories data structure and implement sitemap generation

- Refactored product categories to use a new data structure.
- Updated API routes to fetch product categories from the new data source.
- Implemented sitemap generation script using dotenv for environment variables.
- Added sitemap generation endpoint to the API.
- Removed old sitemap file and replaced it with a dynamically generated one.
This commit is contained in:
2025-06-11 15:42:49 +03:30
parent 2a132d6934
commit a6da045e19
13 changed files with 633 additions and 53 deletions
+13
View File
@@ -0,0 +1,13 @@
export interface APIProductCategoryEntity {
id: string;
title: string;
fa_title?: string;
icon: string;
typesCount: number;
priceTypeTitle: string;
fa_priceTypeTitle?: string;
bestForTitle: string;
fa_bestForTitle?: string;
fa_description?: string;
description?: string;
}