From 8091a98a9f73b7a24c3bdaa1381957429bb1df7a Mon Sep 17 00:00:00 2001 From: Citali Date: Sun, 28 Dec 2025 00:38:19 +0100 Subject: [PATCH] Fixes for build ready --- src/app/api/image/[...key]/route.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/api/image/[...key]/route.ts b/src/app/api/image/[...key]/route.ts index eeb8f1e..f4d4d68 100644 --- a/src/app/api/image/[...key]/route.ts +++ b/src/app/api/image/[...key]/route.ts @@ -1,9 +1,9 @@ import { s3 } from "@/lib/s3"; import { GetObjectCommand } from "@aws-sdk/client-s3"; -import "dotenv/config"; +import type { NextRequest } from "next/server"; -export async function GET(req: Request, { params }: { params: { key: string[] } }) { - const { key } = await params; +export async function GET(_req: NextRequest, context: { params: Promise<{ key: string[] }> }) { + const { key } = await context.params; const s3Key = key.join("/"); try {