Fix Keystatic configuration (#10783)

- Always use the `github` mode
- Set a `pathPrefix` as the repository is a monorepo
This commit is contained in:
Baptiste Devessier
2025-03-11 18:17:20 +01:00
committed by GitHub
parent d9817d6b9c
commit d4c2fa9f66
2 changed files with 7 additions and 7 deletions

View File

@ -2,3 +2,8 @@ GITHUB_TOKEN=your_github_token
DATABASE_PG_URL=postgres://website:website@localhost:5432/website # only if using postgres
NEXT_PUBLIC_ALGOLIA_APP_ID=twenty_appId
NEXT_PUBLIC_ALGOLIA_API_KEY=twenty_apiKey
KEYSTATIC_GITHUB_CLIENT_ID=""
KEYSTATIC_GITHUB_CLIENT_SECRET=""
KEYSTATIC_SECRET=""
NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG=""

View File

@ -3,17 +3,12 @@ import { wrapper } from '@keystatic/core/content-components';
export default config({
storage: {
kind:
process.env.KEYSTATIC_STORAGE_KIND === ''
? 'local'
: ((process.env.KEYSTATIC_STORAGE_KIND || 'local') as
| 'local'
| 'github'
| 'cloud'),
kind: 'github',
repo: {
owner: 'twentyhq',
name: 'twenty',
},
pathPrefix: 'packages/twenty-website',
},
collections: {
developers: collection({