From 0bb73dac7a8937fdece620f49771ea1442627ac4 Mon Sep 17 00:00:00 2001 From: Emma Hamilton Date: Mon, 14 Oct 2024 16:21:51 +1000 Subject: [PATCH] Remove check for `output: 'hybrid'` or `output: 'server'` to support Astro 5 --- .changeset/cyan-wasps-jump.md | 5 +++++ packages/astro/src/index.ts | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 .changeset/cyan-wasps-jump.md 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/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: {