feat: refactor product components and add sitemap support
- Updated product components to use new IPageParams interface for better type safety. - Added next-sitemap configuration and generated sitemap.xml and robots.txt files. - Removed deprecated ProductCard component and its associated types. - Enhanced internationalization support across various pages.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
module.exports = {
|
||||
siteUrl: process.env.SITE_URL || 'http://localhost:3000',
|
||||
generateRobotsTxt: true,
|
||||
changefreq: 'weekly',
|
||||
priority: 0.7,
|
||||
sitemapSize: 7000,
|
||||
// Enable i18n support
|
||||
i18n: {
|
||||
locales: ['en', 'fa'],
|
||||
defaultLocale: 'en',
|
||||
},
|
||||
// Optionally, exclude certain paths (like API routes)
|
||||
exclude: ['/api/*', '/_next/*'],
|
||||
// If you want to include additional sitemaps (for subdirectories, etc.)
|
||||
// additionalSitemaps: [
|
||||
// `${process.env.SITE_URL || 'http://localhost:5000'}/custom-sitemap.xml`,
|
||||
// ],
|
||||
};
|
||||
Reference in New Issue
Block a user