import { fetchPropertiesForMapServer } from "@/utils/strapi";
import { NextResponse } from "next/server";

export const dynamic = "force-dynamic";

export async function GET() {
  try {
    const data = await fetchPropertiesForMapServer();
    return NextResponse.json(data);
  } catch (error) {
    console.error("Failed to load map properties:", error);
    return NextResponse.json([], { status: 200 });
  }
}
