29 lines
731 B
JavaScript
29 lines
731 B
JavaScript
/** @type {import('next-sitemap').IConfig} */
|
|
|
|
require('dotenv').config({ path: '.env.development' });
|
|
|
|
module.exports = {
|
|
siteUrl: 'http://localhost:3001/',
|
|
sitemapBaseFileName: 'sitemap_main',
|
|
generateIndexSitemap: false,
|
|
exclude: [
|
|
'/sitemap.xml',
|
|
'/sitemap_blog.xml',
|
|
'/sitemap_case_studies.xml',
|
|
'/sitemap_industries.xml',
|
|
'/sitemap_service.xml',
|
|
'/sitemap_event.xml',
|
|
],
|
|
|
|
transform: async (_, url) => {
|
|
return {
|
|
loc: url,
|
|
lastmod: `${process.env.NEXT_PUBLIC_SITEMAP_STATIC_TIME}`,
|
|
changefreq: 'daily',
|
|
priority: 0.9,
|
|
};
|
|
},
|
|
|
|
outDir: `${process.env.NEXT_PUBLIC_SITEMAP_OUT_DIR}`,
|
|
};
|