Fixes for build ready

This commit is contained in:
2025-12-28 00:36:49 +01:00
parent d366dd4e18
commit e2fd4df221
5 changed files with 27 additions and 20 deletions

View File

@ -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 {