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:
@@ -1,3 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
</sitemapindex>
|
||||
@@ -0,0 +1,311 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/about-us</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/about-us</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/contact-us</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/contact-us</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/blog</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/blog</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/projects</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/projects</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/1</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/1</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/2</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/2</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/3</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/3</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/40</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/40</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/1</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/1</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/2</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/2</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/3</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/3</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/40</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/40</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/1</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/1</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/2</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/2</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/3</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/3</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/40</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/40</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/1</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/1</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/2</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/2</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/3</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/3</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/en/product-categories/40</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
|
||||
<url>
|
||||
<loc>http://localhost:3000/fa/product-categories/40</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
</urlset>
|
||||
Reference in New Issue
Block a user