import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';

const EXCLUDED_PATHS = new Set([
  'https://unique.rzen.dev/grid/',
  'https://unique.rzen.dev/index3/',
  'https://unique.rzen.dev/404/',
]);

export default defineConfig({
  site: 'https://unique.rzen.dev',
  trailingSlash: 'always',
  build: { format: 'directory' },
  integrations: [
    mdx(),
    sitemap({
      filter: (page) => !EXCLUDED_PATHS.has(page),
      changefreq: 'weekly',
    }),
  ],
});
