Skip to content

Commit

Permalink
Changes keystatic to use github storage + astro v5 (#193)
Browse files Browse the repository at this point in the history
* Changes keystatic to use github storage
* Updates astro to v5
  • Loading branch information
fsmeier authored Dec 16, 2024
1 parent 46e09cb commit 2da6de0
Show file tree
Hide file tree
Showing 24 changed files with 19,237 additions and 3,145 deletions.
5 changes: 2 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,14 @@ export default defineConfig({
gzip: false,
brotli: true
}),
mdx(),
react(),
markdoc(),
mdx(),
keystatic()
],
output: "hybrid",
output: "static",
experimental: {
clientPrerender: true,
directRenderScript: true
},
outdir: "dist",
adapter: netlify()
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ services:
build: .
ports:
- "4321:4321"
- "4322:4322"
volumes:
- "./:/app"
- "/app/.tscache"
Expand Down
11 changes: 6 additions & 5 deletions keystatic.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ import { config, fields, collection } from '@keystatic/core';

const keystaticConfig: Config = {
storage: {
kind: 'cloud',
},
cloud: {
project: 'commercequest/cq-astro',
kind: 'github',
repo: {
owner: 'spryker-community',
name: 'commercequest-website'
}
},
ui: {
brand: {
name: 'CommerceQuest Admin',
name: 'CommerceQuest Admin',
},
},
collections: {
Expand Down
2 changes: 2 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[dev]
port = 4322
Loading

0 comments on commit 2da6de0

Please sign in to comment.