Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes keystatic to use github storage #193

Merged
merged 6 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading