PunimTag Web Application - Major Feature Release #1

Open
tanyar09 wants to merge 106 commits from dev into master
3 changed files with 9 additions and 0 deletions
Showing only changes of commit 2020e84f94 - Show all commits

View File

@ -4,6 +4,9 @@ import { HomePageContent } from './HomePageContent';
import { Photo } from '@prisma/client';
import { serializePhotos, serializePeople, serializeTags } from '@/lib/serialize';
// Force dynamic rendering to prevent database queries during build
export const dynamic = 'force-dynamic';
async function getAllPeople() {
try {
return await prisma.person.findMany({

View File

@ -3,6 +3,9 @@ import { PhotoViewerClient } from '@/components/PhotoViewerClient';
import { prisma } from '@/lib/db';
import { serializePhoto, serializePhotos } from '@/lib/serialize';
// Force dynamic rendering to prevent database queries during build
export const dynamic = 'force-dynamic';
async function getPhoto(id: number) {
try {
const photo = await prisma.photo.findUnique({

View File

@ -3,6 +3,9 @@ import { prisma } from '@/lib/db';
import { SearchContent } from './SearchContent';
import { PhotoGrid } from '@/components/PhotoGrid';
// Force dynamic rendering to prevent database queries during build
export const dynamic = 'force-dynamic';
async function getAllPeople() {
try {
return await prisma.person.findMany({