chore(db): remove Prisma facade and drop prisma:generate from CI

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-08-01 14:38:42 +02:00
1 parent ca72966a37
commit 422567272c
17 files changed
+182 -1430

No files matched your search

+4 -5
View File
@@ -9,6 +9,7 @@ import { toggleReaction } from "@/actions/article-reactions";
import { ContentCard, EmptyState } from "@/components/public/ui";
import { SanitizedHtml } from "@/components/shared/sanitized-html";
import { auth } from "@/lib/auth";
import { cachedQuery } from "@/lib/cached-db";
import {
db,
User,
@@ -18,7 +19,6 @@ import {
} from "@/lib/db";
import { excerpt } from "@/lib/format";
import { formatDate } from "@/lib/format-date";
import { cacheQuery } from "@/lib/prisma-cache";
import { sanitize } from "@/lib/sanitize";
export const revalidate = 60;
@@ -105,10 +105,8 @@ export default async function ArticlePage({
const { comment, reaction, error } = await searchParams;
const t = await getTranslations("pages.article");
const article = await cacheQuery(
"websiteArticles",
"findUnique",
{ slug },
const article = await cachedQuery(
`article:slug:${slug}`,
async () => {
const [row] = await db
.select({
@@ -127,6 +125,7 @@ export default async function ArticlePage({
.catch(() => []);
return row ?? null;
},
60,
);
if (!article) notFound();