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:
+1
-7
@@ -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)',
|
||||
|
||||
Reference in New Issue
Block a user