Files
radio.org.tr/keystatic.config.ts
T
Buğra Canata e05f99a0d2 Enable KeyStatic CMS for production
Changes:
- Added Netlify adapter for server-side rendering
- Changed output mode from static to server
- Updated KeyStatic storage from local to GitHub
- Removed SKIP_KEYSTATIC from Netlify build
- KeyStatic Admin UI will be available at /keystatic

Features:
- Server-side rendering with Netlify Functions
- GitHub integration for content management
- Production-ready KeyStatic Admin UI

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-17 20:05:42 +03:00

72 lines
1.9 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { config, fields, collection } from '@keystatic/core';
export default config({
storage: {
kind: 'github',
repo: 'YM1KTC/ARC-Web-Sitesi',
branch: 'main',
},
collections: {
post: collection({
label: 'Blog Yazıları',
slugField: 'title',
path: 'src/data/post/*',
format: { contentField: 'body' },
schema: {
title: fields.slug({
name: {
label: 'Başlık',
description: 'Blog yazısının başlığı',
},
}),
date: fields.datetime({
label: 'Yayın Tarihi',
description: 'Yazının yayınlanma tarihi',
}),
author: fields.text({
label: 'Yazar',
description: 'Çağrı işareti veya yazar adı',
default: 'TA1SPH',
}),
categories: fields.array(
fields.text({
label: 'Kategori',
})
, {
label: 'Kategoriler',
description: 'Blog yazısının kategorileri',
}),
tags: fields.array(
fields.text({
label: 'Etiket',
})
, {
label: 'Etiketler',
description: 'Blog yazısının etiketleri',
}),
layout: fields.text({
label: 'Düzen',
default: 'post',
}),
image: fields.image({
label: 'Öne Çıkan Görsel',
description: 'Blog yazısı için kapak görseli',
}),
publishDate: fields.datetime({
label: 'Yayınlanma Tarihi',
description: 'Content collection için yayın tarihi',
}),
excerpt: fields.text({
label: 'Özet',
description: 'Blog yazısının kısa özeti',
multiline: true,
}),
body: fields.markdoc({
label: 'İçerik',
description: 'Blog yazısının ana içeriği',
}),
},
}),
},
});