import { defineConfig } from "astro/config";
import solidJs from '@astrojs/solid-js';
import tailwind from "@astrojs/tailwind";
import icon from "astro-icon";
import sitemap from "@astrojs/sitemap";
import node from "@astrojs/node";

// https://astro.build/config
export default defineConfig({
  site: process.env.PUBLIC_SITE_URL || "https://redib.ru",
  integrations: [tailwind(), solidJs(), icon(), sitemap()],
  output: "server",
  content: {
    collections: {}
  },

  vite: {
    build: {
      // Встраивать CSS размером до 15 КБ
      cssInlineLimit: 15000
    }
  },

  adapter: node({
    mode: "standalone",
  }),
});