---
url: https://gudhub.com/docs/ssr-ssg/website/configs/sitemap-config/
title: "Sitemap Config\n                #"
description: "The sitemap config object defines the settings for generating sitemaps for different sections of a website, such as pages and blogs. This setup specifies which"
lang: uk
updated: 2026-09-11T14:08:40.250Z
---

# Sitemap Config [#](https://gudhub.com/docs/ssr-ssg/website/configs/sitemap-config/#sitemap-config)

The `sitemap_config` object defines the settings for generating sitemaps for different sections of a website, such as pages and blogs. This setup specifies which URLs should be included in the sitemap, their priorities, update frequencies, and additional filtering logic.

## Structure of sitemap\_config [#](https://gudhub.com/docs/ssr-ssg/website/configs/sitemap-config/#structure-of-sitemap-config)

### **Each Section Includes:** [#](https://gudhub.com/docs/ssr-ssg/website/configs/sitemap-config/#each-section-includes)

| **Property Name** | **Type** | **Description** |
| :-- | :-- | :-- |
| `sitemapName` | `string` | The name for the sitemap (optional). |
| `status_field_id` | `number` | A field ID used to determine the inclusion status of items in the sitemap. |
| `frequency` | `string` | The default update frequency (e.g., "weekly", "monthly"). |
| `priority` | `number` | The default priority for URLs (usually between 0.0 and 1.0). |
| `cases` | `array` | A list of specific rules for individual routes or patterns. |
| `filter` | `function` | A function to filter items based on their fields (e.g., only active items). |

Copy

```javascript
export const sitemap_config = {
    pages: {
        sitemap: {
            status_field_id: number,
            frequency: 'string',
            priority: number,
            sitemapName: 'string',
            cases: [
                {
                    case: 'string',
                    priority: number,
                    frequency: 'string'
                },
                {
                    case: 'string',
                    priority: number,
                    frequency: 'string'
                },
                {
                    case: 'string',
                    priority: number,
                    frequency: 'string'
                }
            ],
            filter: function(items) {
                const status_field_id = this.status_field_id;
                return items.filter(item => {
                    const field = item.fields.find(field => field.field_id == status_field_id);
                    if(field) {
                        return field.field_value == 1;
                    }
                    return false;
                });
            }
        }
    },
};
```
