From b9e74f76434d593d48ed0c4ecfa39de87e095d23 Mon Sep 17 00:00:00 2001 From: Dave Date: Thu, 5 Mar 2026 13:04:25 +0100 Subject: [PATCH] Fixed astro static deploy --- astro.config.mjs | 13 +++++++------ package.json | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 36f401f..066ba72 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -9,11 +9,12 @@ import preact from '@astrojs/preact'; // https://astro.build/config export default defineConfig({ output: 'static', - integrations: [react(), markdoc(), keystatic(), preact()], - - adapter: node({ - mode: 'standalone', - }), + integrations: [ + react(), + markdoc(), + preact(), + ...(process.env.SKIP_KEYSTATIC ? [] : [keystatic()]), + ], vite: { ssr: { noExternal: ['lodash'], @@ -22,4 +23,4 @@ export default defineConfig({ include: ['react', 'react-dom', 'react/jsx-runtime'], }, }, -}); \ No newline at end of file +}); diff --git a/package.json b/package.json index d5b0af0..3f7b0f3 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "dev": "astro dev", "start": "astro dev", "build": "astro build", + "build:static": "SKIP_KEYSTATIC=true astro build", "preview": "astro preview", "astro": "astro" },