config.js 1000 B

1234567891011121314151617181920212223242526272829303132333435
  1. "use strict";
  2. exports.__esModule = true;
  3. exports.sampleConfig = void 0;
  4. var defaults_js_1 = require("../utils/defaults.js");
  5. exports.sampleConfig = (0, defaults_js_1.withDefaultConfig)({
  6. siteUrl: 'https://example.com',
  7. sourceDir: 'public',
  8. changefreq: 'daily',
  9. priority: 0.7,
  10. sitemapSize: 5000,
  11. generateRobotsTxt: true,
  12. trailingSlash: false,
  13. robotsTxtOptions: {
  14. policies: [
  15. {
  16. userAgent: '*',
  17. allow: '/'
  18. },
  19. {
  20. userAgent: 'black-listed-bot',
  21. disallow: ['/sub-path-1', '/path-2']
  22. },
  23. {
  24. userAgent: 'friendly-bot',
  25. allow: '/',
  26. crawlDelay: 10
  27. },
  28. ],
  29. additionalSitemaps: [
  30. 'https://example.com/my-custom-sitemap-1.xml',
  31. 'https://example.com/my-custom-sitemap-2.xml',
  32. 'https://example.com/my-custom-sitemap-3.xml',
  33. ]
  34. }
  35. });