PunimTag Web Application - Major Feature Release #1
@ -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({
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user