Fixes for build ready
This commit is contained in:
@ -1,9 +1,9 @@
|
|||||||
import { s3 } from "@/lib/s3";
|
import { s3 } from "@/lib/s3";
|
||||||
import { GetObjectCommand } from "@aws-sdk/client-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[] } }) {
|
export async function GET(_req: NextRequest, context: { params: Promise<{ key: string[] }> }) {
|
||||||
const { key } = await params;
|
const { key } = await context.params;
|
||||||
const s3Key = key.join("/");
|
const s3Key = key.join("/");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user