Foundation + Schemas
This commit is contained in:
@@ -2,13 +2,22 @@ import { defineConfig, fontProviders } from 'astro/config'
|
||||
|
||||
import keystatic from '@keystatic/astro'
|
||||
|
||||
import markdoc from '@astrojs/markdoc'
|
||||
import node from '@astrojs/node'
|
||||
import react from '@astrojs/react'
|
||||
|
||||
const devOnly = (integration) => ({
|
||||
name: `${integration.name}:dev-only`,
|
||||
hooks: {
|
||||
'astro:config:setup': async (params) => {
|
||||
if (params.command !== 'dev') return
|
||||
await integration.hooks['astro:config:setup']?.(params)
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
export default defineConfig({
|
||||
site: 'https://dave-dmg.de',
|
||||
integrations: [react(), markdoc(), keystatic()],
|
||||
integrations: [react(), devOnly(keystatic())],
|
||||
|
||||
adapter: node({
|
||||
mode: 'standalone',
|
||||
|
||||
Reference in New Issue
Block a user