next-sitemap.config.js 406 B

1234567891011121314151617
  1. const uiUrl = process.env.NODE_ENV === 'development' ? 'http://localhost:3010' : 'https://tabler.io'
  2. /** @type {import('next-sitemap').IConfig} */
  3. module.exports = {
  4. siteUrl: uiUrl || '',
  5. generateRobotsTxt: true,
  6. generateIndexSitemap: false,
  7. robotsTxtOptions: {
  8. policies: [
  9. {
  10. userAgent: '*',
  11. allow: '/',
  12. },
  13. ],
  14. },
  15. exclude: ['/samples', '/login', '/test'],
  16. }