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" },