Fixed astro static deploy
Some checks failed
Build and Deploy DAVE | DMGs Site / deploy (push) Failing after 46s
Some checks failed
Build and Deploy DAVE | DMGs Site / deploy (push) Failing after 46s
This commit is contained in:
@@ -9,11 +9,12 @@ import preact from '@astrojs/preact';
|
|||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
output: 'static',
|
output: 'static',
|
||||||
integrations: [react(), markdoc(), keystatic(), preact()],
|
integrations: [
|
||||||
|
react(),
|
||||||
adapter: node({
|
markdoc(),
|
||||||
mode: 'standalone',
|
preact(),
|
||||||
}),
|
...(process.env.SKIP_KEYSTATIC ? [] : [keystatic()]),
|
||||||
|
],
|
||||||
vite: {
|
vite: {
|
||||||
ssr: {
|
ssr: {
|
||||||
noExternal: ['lodash'],
|
noExternal: ['lodash'],
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
"start": "astro dev",
|
"start": "astro dev",
|
||||||
"build": "astro build",
|
"build": "astro build",
|
||||||
|
"build:static": "SKIP_KEYSTATIC=true astro build",
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user