Files
pasargad/next-sitemap.config.js
T
ahasani 429256f512 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.
2025-06-09 11:29:54 +03:30

19 lines
545 B
JavaScript

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`,
// ],
};