// @ts-check
import { defineConfig } from 'astro/config';
import svelte from '@astrojs/svelte';
import sitemap from '@astrojs/sitemap';
import icon from 'astro-icon';
import tailwindcss from '@tailwindcss/vite';

// https://astro.build/config
// site wird für Sitemap und canonical/og-URLs genutzt (PUBLIC_SITE_URL oder Fallback)
const site = process.env.PUBLIC_SITE_URL || 'https://windwiderstand.de';

export default defineConfig({
  site,
  devToolbar: { enabled: false },
  integrations: [
    svelte(),
    sitemap(),
    icon({
      include: {
        mdi: ['close', 'link', 'magnify', 'menu'],
      },
    }),
  ],
  vite: {
    plugins: [tailwindcss()]
  }
});