From 0fedaf6d04a69447604db67ff4b4175707ae7d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bu=C4=9Fra=20Canata?= Date: Sat, 17 Jan 2026 23:25:43 +0300 Subject: [PATCH] Fix title field: use text instead of slug The title field was incorrectly using fields.slug() when it should be fields.text(). KeyStatic automatically slugifies the title for URLs when slugField is set. This fixes the "n.call is not a function" error when opening a post. Co-Authored-By: Claude --- keystatic.config.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/keystatic.config.ts b/keystatic.config.ts index 6beba3e..92e5121 100644 --- a/keystatic.config.ts +++ b/keystatic.config.ts @@ -24,11 +24,9 @@ export default config({ frontmatter: 'yaml', }, schema: { - title: fields.slug({ - name: { - label: 'Başlık', - description: 'Blog yazısının başlığı (URL\'de kullanılır)', - }, + title: fields.text({ + label: 'Başlık', + description: 'Blog yazısının başlığı (URL\'de kullanılır)', }), date: fields.datetime({ label: 'Yayın Tarihi',