import { defineConfig } from "astro/config"; import svelte from "@astrojs/svelte"; // import astroI18next from "astro-i18next"; import tailwind from "@astrojs/tailwind"; import node from "@astrojs/node"; import mdx from "@astrojs/mdx"; import astroTypesafeAPI from "astro-typesafe-api" // https://astro.build/config export default defineConfig({ integrations: [svelte(), tailwind(), mdx(), astroTypesafeAPI()], outDir: "./dist", output: "server", adapter: node({ mode: "middleware", }), vite: { server: { allowedHosts: ["ibcornelsen.de", "online-energieausweis.org"] }, optimizeDeps: { exclude: ["bun"] }, build: { rollupOptions: { external: ["bun", "stream", "node:stream", "http", "node:http", "https", "http2", "path", "os", "crypto", "fs", "url", "util", "child_process"] } }, ssr: { external: ["@prisma/client", "bun", "stream"], resolve: { alias: { ".prisma/client/index-browser": "./node_modules/.prisma/client/index-browser.js" } } } }, server: { port: 3000 }, devToolbar: { enabled: false } });