Skip to content

Commit

Permalink
Remove check for output: 'hybrid' or output: 'server' to support …
Browse files Browse the repository at this point in the history
…Astro 5
  • Loading branch information
emmatown committed Oct 14, 2024
1 parent 330cf6f commit 0bb73da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-wasps-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystatic/astro': patch
---

Remove check for `output: 'hybrid'` or `output: 'server'` to support Astro 5
5 changes: 0 additions & 5 deletions packages/astro/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 0bb73da

Please sign in to comment.