diff --git a/.changeset/cyan-wasps-jump.md b/.changeset/cyan-wasps-jump.md new file mode 100644 index 000000000..14bf13669 --- /dev/null +++ b/.changeset/cyan-wasps-jump.md @@ -0,0 +1,5 @@ +--- +'@keystatic/astro': patch +--- + +Remove check for `output: 'hybrid'` or `output: 'server'` to support Astro 5 diff --git a/packages/astro/package.json b/packages/astro/package.json index 38561a461..8953dc66b 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -43,7 +43,7 @@ }, "peerDependencies": { "@keystatic/core": "*", - "astro": "2 || 3 || 4", + "astro": "2 || 3 || 4 || 5", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/packages/astro/src/index.ts b/packages/astro/src/index.ts index ae6f10208..aaa43c7b9 100644 --- a/packages/astro/src/index.ts +++ b/packages/astro/src/index.ts @@ -6,11 +6,6 @@ export default function keystatic(): AstroIntegration { name: 'keystatic', hooks: { 'astro:config:setup': ({ injectRoute, updateConfig, config }) => { - if (config.output === 'static') { - throw new Error( - "Keystatic requires `output: 'hybrid'` or `output: 'server'` in your Astro config" - ); - } updateConfig({ server: config.server.host ? {} : { host: '127.0.0.1' }, vite: {