Files
nym/documentation/docs/next-sitemap.config.js
mfahampshire a2c489dc5b Max/sitemap generation fix (#6515)
* Tweak README ordering

* Linting

* Add sitemap generation + NEXT env var to CI

* Update domain for sitemap generation

* Inc. sitemap -0

* test remove lockfile

* fix borked name in package

* add redoc

* add framer

* Add pnpm-lock file

* Add sitemap to remote + ci workflow

* remove extra sitemap

* remove static files from remote for vercel

* add sitemap gen to next build step for vercel
2026-03-04 16:01:51 +00:00

26 lines
776 B
JavaScript

/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: 'https://nym.com/docs',
generateRobotsTxt: true,
outDir: './public',
exclude: ['/api/*', '/docs/_*', '/404'],
robotsTxtOptions: {
policies: [
{ userAgent: '*', allow: '/' },
{ userAgent: '*', disallow: ['/api/', '/_next/'] },
],
additionalSitemaps: [],
},
transform: async (config, path) => ({
loc: path,
changefreq: path.includes('/changelog')
? 'weekly'
: path.includes('/docs/operators') || path.includes('/docs/developers')
? 'monthly'
: 'yearly',
priority: path === '/docs' ? 1.0
: path.includes('/operators/nodes') || path.includes('/developers') ? 0.8
: 0.6,
lastmod: new Date().toISOString(),
}),
}