Fix deleted website visibility bug
Some checks failed
Create docker images (cloud) / Build, push, and deploy (push) Has been cancelled
Node.js CI / build (postgresql, 18.18, 10) (push) Has been cancelled

Closes #3865
This commit is contained in:
Francis Cao 2025-12-19 14:21:42 -08:00
parent 3072f02f1b
commit 912d2d544d
4 changed files with 19 additions and 1 deletions

View file

@ -1,8 +1,14 @@
import type { Metadata } from 'next';
import { getPixel } from '@/queries/prisma';
import { PixelPage } from './PixelPage';
export default async function ({ params }: { params: { pixelId: string } }) {
const { pixelId } = await params;
const pixel = await getPixel(pixelId);
if (!pixel || pixel?.deletedAt) {
return null;
}
return <PixelPage pixelId={pixelId} />;
}