Integrate Prisma for content; enhance SEO, i18n, and deployment workflows

Co-authored-by: dennis <dennis@konkol.net>
This commit is contained in:
Cursor Agent
2026-01-12 15:27:35 +00:00
parent f1cc398248
commit 423a2af938
38 changed files with 757 additions and 629 deletions

View File

@@ -1,4 +1,5 @@
import { prisma } from "@/lib/prisma";
import type { Prisma } from "@prisma/client";
export async function getSiteSettings() {
return prisma.siteSettings.findUnique({ where: { id: 1 } });
@@ -55,14 +56,14 @@ export async function upsertContentByKey(opts: {
locale,
title: title ?? undefined,
slug: slug ?? undefined,
content: content as any, // JSON
content: content as Prisma.InputJsonValue, // JSON
metaDescription: metaDescription ?? undefined,
keywords: keywords ?? undefined,
},
update: {
title: title ?? undefined,
slug: slug ?? undefined,
content: content as any, // JSON
content: content as Prisma.InputJsonValue, // JSON
metaDescription: metaDescription ?? undefined,
keywords: keywords ?? undefined,
},