-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext-sitemap.config.js
More file actions
35 lines (35 loc) · 862 Bytes
/
next-sitemap.config.js
File metadata and controls
35 lines (35 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: 'https://pixelflow.dev', // Update with your actual domain
generateRobotsTxt: true,
generateIndexSitemap: false,
exclude: [
'/api/*',
'/admin/*',
'/private/*',
'/_next/*',
'/404',
'/500',
],
changefreq: 'weekly',
priority: 0.7,
trailingSlash: false,
sourceMap: false,
// Additional SEO configurations for PixelFlow
additionalPaths: async (config) => [
await config.transform(config, '/patterns'),
await config.transform(config, '/contribute'),
],
robotsTxtOptions: {
policies: [
{
userAgent: '*',
allow: '/',
disallow: ['/api/', '/admin/', '/private/'],
},
],
additionalSitemaps: [
'https://pixelflow.dev/sitemap.xml', // Update with your actual domain
],
},
};