import { defineConfig } from "astro/config"; import solidJs from "@astrojs/solid-js"; import node from "@astrojs/node"; export default defineConfig({ integrations: [solidJs()], server: { port: 4322, strictPort: true, }, vite: { // Avoid "Outdated Optimize Dep" 504s in dev when Vite's prebundle cache // gets out of sync. These deps are used by Solid islands. optimizeDeps: { include: ["html2canvas", "@neodrag/solid"], }, }, output: "server", adapter: node({ mode: "standalone", }), });