kios-webapp/apps/web/astro.config.mjs
2024-03-07 15:31:41 +01:00

25 lines
572 B
JavaScript

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"),
},
output: "server",
adapter: node({
mode: "standalone",
}),
vite: {
define: {
"import.meta.env.PAYLOAD_PUBLIC_SERVER_URL": JSON.stringify(
process.env.PAYLOAD_PUBLIC_SERVER_URL,
),
},
},
});