2024-03-07 14:31:41 +00:00
|
|
|
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"),
|
2024-03-11 16:25:04 +00:00
|
|
|
// FIXME 3wc: seems to be ignored?
|
|
|
|
hostname: process.env.ASTRO_HOST ?? "0.0.0.0",
|
2024-03-07 14:31:41 +00:00
|
|
|
},
|
|
|
|
output: "server",
|
|
|
|
adapter: node({
|
|
|
|
mode: "standalone",
|
|
|
|
}),
|
|
|
|
vite: {
|
2024-03-11 16:25:04 +00:00
|
|
|
// FIXME 3wc: shouldn't need to hardcode this
|
2024-03-07 14:31:41 +00:00
|
|
|
define: {
|
|
|
|
"import.meta.env.PAYLOAD_PUBLIC_SERVER_URL": JSON.stringify(
|
2024-03-11 16:25:04 +00:00
|
|
|
"http://api:3001"
|
|
|
|
)
|
2024-03-07 14:31:41 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|