cooment code
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-04-18 13:22:22 +01:00
parent 5e5a43094f
commit f163f22987
+12 -12
View File
@@ -1,14 +1,14 @@
import { NextResponse } from "next/server"; // import { NextResponse } from "next/server";
import { readSliderPhotos } from "@/lib/slider-photos"; // import { readSliderPhotos } from "@/lib/slider-photos";
export const runtime = "nodejs"; // export const runtime = "nodejs";
export const dynamic = "force-dynamic"; // export const dynamic = "force-dynamic";
export async function GET() { // export async function GET() {
try { // try {
const photos = readSliderPhotos(); // const photos = readSliderPhotos();
return NextResponse.json(photos); // return NextResponse.json(photos);
} catch { // } catch {
return NextResponse.json([]); // return NextResponse.json([]);
} // }
} // }