Mark reset-password and photo routes as dynamic to prevent build-time data collection
This commit is contained in:
parent
1aff435ca1
commit
da4d7e6f6e
@ -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 }> }
|
||||
|
||||
@ -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 }> }
|
||||
|
||||
@ -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 }> }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user