Fix Keystatic configuration (#10783)
- Always use the `github` mode - Set a `pathPrefix` as the repository is a monorepo
This commit is contained in:
committed by
GitHub
parent
d9817d6b9c
commit
d4c2fa9f66
@ -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=""
|
||||
|
||||
@ -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({
|
||||
|
||||
Reference in New Issue
Block a user