19 lines
558 B
JavaScript
19 lines
558 B
JavaScript
import { defineConfig } from "astro/config";
|
|
import preact from "@astrojs/preact";
|
|
import node from "@astrojs/node";
|
|
|
|
export default defineConfig({
|
|
output: "server",
|
|
srcDir: "./src/application",
|
|
publicDir: "./public",
|
|
outDir: "./dist/app",
|
|
adapter: node({ mode: "standalone" }),
|
|
integrations: [preact()],
|
|
security: {
|
|
// Origin validation is performed in application middleware because the
|
|
// edge and K3s proxy chain terminates TLS before the Node request.
|
|
checkOrigin: false,
|
|
},
|
|
vite: { server: { fs: { allow: ["."] } } },
|
|
});
|