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 { readSliderPhotos } from "@/lib/slider-photos";
// import { NextResponse } from "next/server";
// import { readSliderPhotos } from "@/lib/slider-photos";
export const runtime = "nodejs";
export const dynamic = "force-dynamic";
// export const runtime = "nodejs";
// export const dynamic = "force-dynamic";
export async function GET() {
try {
const photos = readSliderPhotos();
return NextResponse.json(photos);
} catch {
return NextResponse.json([]);
}
}
// export async function GET() {
// try {
// const photos = readSliderPhotos();
// return NextResponse.json(photos);
// } catch {
// return NextResponse.json([]);
// }
// }