Fixed astro static deploy
Some checks failed
Build and Deploy DAVE | DMGs Site / deploy (push) Failing after 46s

This commit is contained in:
2026-03-05 13:04:25 +01:00
parent fc48646c86
commit b9e74f7643
2 changed files with 8 additions and 6 deletions

View File

@@ -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'],
},
},
});
});

View File

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