feat: add JSON import functionality for content creation in the admin dashboard

This commit is contained in:
2026-05-17 13:23:11 +02:00
parent 8f0dc7f38c
commit 0054f731c7
10 changed files with 907 additions and 35 deletions

13
check-posts.ts Normal file
View File

@@ -0,0 +1,13 @@
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
async function main() {
const posts = await prisma.blogPost.findMany({
orderBy: { createdAt: 'desc' },
take: 5
});
console.log(JSON.stringify(posts, null, 2));
}
main().catch(console.error).finally(() => prisma.$disconnect());