Mark reset-password and photo routes as dynamic to prevent build-time data collection

This commit is contained in:
ilia 2026-01-04 22:02:30 -05:00
parent 1aff435ca1
commit da4d7e6f6e
3 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,9 @@ import { prisma } from "@/lib/prisma"
import { logger } from "@/lib/logger"
import { hashPassword } from "@/lib/utils"
// Mark this route as dynamic to prevent build-time data collection
export const dynamic = "force-dynamic"
export async function POST(
req: NextRequest,
{ params }: { params: Promise<{ userId: string }> }

View File

@ -5,6 +5,9 @@ import { normalizeString } from "@/lib/utils"
import { logActivity } from "@/lib/activity-log"
import { logger } from "@/lib/logger"
// Mark this route as dynamic to prevent build-time data collection
export const dynamic = "force-dynamic"
export async function POST(
req: NextRequest,
{ params }: { params: Promise<{ photoId: string }> }

View File

@ -6,6 +6,9 @@ import { unlink } from "fs/promises"
import { join } from "path"
import { existsSync } from "fs"
// Mark this route as dynamic to prevent build-time data collection
export const dynamic = "force-dynamic"
export async function DELETE(
req: NextRequest,
{ params }: { params: Promise<{ photoId: string }> }