import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import Sitemap from 'vite-plugin-sitemap';

export default defineConfig({
  plugins: [
    react(),
    Sitemap({
      hostname: 'https://www.arbejd.com',
      dynamicRoutes: [
        '/home',
        '/for-jobsogere',
        '/for-virksomheder',
        '/pricing',
        '/kontakt',
        '/faq',
        '/privatlivspolitik',
        '/jobordbogen',
        '/stories',
        '/newsletter',
      ],
      changefreq: {
        '*': 'weekly',
        '/privatlivspolitik': 'yearly',
      },
      priority: {
        '*': 0.7,
        '/': 1.0,
        '/home': 0.9,
        '/for-jobsogere': 0.9,
        '/pricing': 0.8,
      },
      generateRobotsTxt: true,
      readable: true,
    }),
  ],
});
