import { fileURLToPath } from "url"; import { defineConfig } from "astro/config"; import solidJs from "@astrojs/solid-js"; import node from "@astrojs/node"; // https://astro.build/config export default defineConfig({ site: "https://www.shadamethyst.xyz/", integrations: [solidJs()], // This seems to still put everything in `workspace:dist/website/dist/`, // but I can live with the appended `dist` folder outDir: fileURLToPath(new URL(import.meta.env["OUT_DIR"] ?? "./dist/", import.meta.url)), output: "server", adapter: node({ mode: "middleware" }) });