Add KeyStatic CMS integration

Features added:
- KeyStatic Core and Astro integration installed
- Markdoc integration for content rendering
- keystatic.config.ts with blog post schema
- Local storage mode for content management
- Conditional loading via SKIP_KEYSTATIC env var
- Netlify build command updated to skip KeyStatic in production

KeyStatic Admin UI available at:
- Local: http://localhost:4321/keystatic
- Production: Disabled for security

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Buğra Canata
2026-01-17 19:51:49 +03:00
parent 2467d5555f
commit 8f64fb1eea
5 changed files with 3203 additions and 106 deletions
+4 -1
View File
@@ -17,6 +17,9 @@ import { readingTimeRemarkPlugin, responsiveTablesRehypePlugin, lazyImagesRehype
import react from '@astrojs/react';
import markdoc from '@astrojs/markdoc';
import keystatic from '@keystatic/astro';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const hasExternalScripts = true;
@@ -60,7 +63,7 @@ export default defineConfig({
Logger: 1,
}), astrowind({
config: './src/config.yaml',
}), react()],
}), react(), markdoc(), ...(process.env.SKIP_KEYSTATIC ? [] : [keystatic()])],
i18n: {
defaultLocale: 'tr',