import { defineConfig } from "@solidjs/start/config";

export default defineConfig({
  vite: {
    plugins: [
    ],
    ssr: {
      external: [ "bun:sqlite" ],  
    },
    build: {
      rollupOptions: {
        external: [ "bun", "bun:*" ],
      },
    },
  },
  solid: {
    babel: {
      compact: true,
    },
  },
  server: {
    preset: "bun",

    noExternals: true,
    compressPublicAssets: true,

    prerender: {
      // routes: ["/", "/sitemaps.xml"],
    },
  },
});
