Fix: Remove relatedPosts field causing KeyStatic error

The relationship field was causing "n.call is not a function" error.
Removed relatedPosts from both keystatic.config.ts and content.config.ts.

Other optimizations remain:
- Site singleton for global settings
- Brand mark (globe logo)
- Entry layout grouping
- Preview URL configuration
- Published and featured checkbox fields

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Buğra Canata
2026-01-17 23:16:21 +03:00
parent 50753b9cc7
commit a7b1090e0a
5310 changed files with 15 additions and 96511 deletions
+1 -7
View File
@@ -69,7 +69,7 @@ export default config({
'Medya': ['image'],
'Sınıflandırma': ['categories', 'tags', 'layout'],
'Özet': ['excerpt'],
'İçerik': ['body', 'relatedPosts'],
'İçerik': ['body'],
},
schema: {
title: fields.slug({
@@ -131,12 +131,6 @@ export default config({
description: 'Blog listesinde gösterilecek özet (isteğe bağlı)',
multiline: true,
}),
relatedPosts: fields.relationship({
label: 'İlgili Yazılar',
description: 'Bu yazıyla ilgili diğer blog yazıları',
collection: 'post',
validation: { length: { min: 0, max: 5 } },
}),
body: fields.markdoc({
label: 'İçerik',
description: 'Blog yazısının ana içeriği (Markdown formatında yazın)',