import { defineConfig } from "astro/config";
import svelte from "@astrojs/svelte";
// import astroI18next from "astro-i18next";

import tailwind from "@astrojs/tailwind";

// https://astro.build/config
import node from "@astrojs/node";

// https://astro.build/config
import mdx from "@astrojs/mdx";

// https://astro.build/config
export default defineConfig({
  integrations: [/*astroI18next(),*/svelte(), tailwind(), mdx()],
  outDir: "./dist",
  output: "server",
	vite: {
		optimizeDeps: {
			exclude: ["@ibcornelsen/api", "@ibcornelsen/database"]
		}
	},
  adapter: node({
    mode: "middleware"
  }),
	server: {
		port: 3000
	}
});