Upgrade app to Next.js 16
CI / quality (push) Waiting to run

This commit is contained in:
MOH
2026-03-13 15:50:37 +01:00
parent f14116b56c
commit e32ac4cacb
40 changed files with 1853 additions and 1157 deletions
+4 -3
View File
@@ -5,9 +5,9 @@ import path from "path";
import { resolveMediaUploadPath } from "@/lib/media-storage";
type MediaFileRouteProps = {
params: {
params: Promise<{
segments: string[];
};
}>;
};
export const dynamic = "force-dynamic";
@@ -23,7 +23,8 @@ const CONTENT_TYPES: Record<string, string> = {
};
export async function GET(_: Request, { params }: MediaFileRouteProps) {
const relativePath = params.segments.join("/");
const { segments } = await params;
const relativePath = segments.join("/");
const publicPath = `/uploads/media/${relativePath}`;
try {