import { defineConfig } from "astro/config";
import node from "@astrojs/node";
import clerk from "@clerk/astro";
import { dark } from '@clerk/themes'

export default defineConfig({
  integrations: [
    clerk({
      appearance: {
        theme: dark,
      },
    }),
  ],
  server: {
    allowedHosts: true,
  },
  adapter: node({ mode: "standalone", checkOrigin: false }),
  output: "server",
  security: {
    checkOrigin: false
  },
  vite: {
    css: {
      preprocessorOptions: {
        scss: {
          // Silences deprecation warnings from dependencies
          quietDeps: true,
          // Specifically silence color function warnings
          silenceDeprecations: ['color-functions', 'import','global-builtin'],
        },
      },
    },
  },
});
