import mdx from "@astrojs/mdx"; import node from "@astrojs/node"; import svelte from "@astrojs/svelte"; import tailwind from "@astrojs/tailwind"; import { defineConfig } from "astro/config"; export default defineConfig({ integrations: [mdx(), tailwind(), svelte()], server: { port: parseInt(process.env.ASTRO_PORT ?? "3000"), // FIXME 3wc: seems to be ignored? hostname: process.env.ASTRO_HOST ?? "0.0.0.0", }, output: "server", adapter: node({ mode: "standalone", }), vite: { // FIXME 3wc: shouldn't need to hardcode this define: { "import.meta.env.PAYLOAD_PUBLIC_SERVER_URL": JSON.stringify( "http://api:3001" ) }, }, });