Publish the Meshkee static image slot catalog.

The business dashboard refresh reads these keys from the live site.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-17 09:55:04 +03:30
co-authored by Cursor
parent 069ffe2bd1
commit dfb791eb50
2 changed files with 53 additions and 0 deletions
@@ -0,0 +1,14 @@
import { NextResponse } from "next/server";
import { STATIC_IMAGE_SLOT_CATALOG } from "@/lib/static-images";
export function GET() {
return NextResponse.json(
{ slots: STATIC_IMAGE_SLOT_CATALOG },
{
headers: {
"Access-Control-Allow-Origin": "*",
"Cache-Control": "public, max-age=60",
},
},
);
}
+39
View File
@@ -9,6 +9,45 @@ export const HOME_SLOT_KEYS = {
oneBannerRow: "one-banner-row", oneBannerRow: "one-banner-row",
} as const; } as const;
export const STATIC_IMAGE_SLOT_CATALOG = [
{
key: HOME_SLOT_KEYS.slider,
label: "Homepage slider",
kind: "list" as const,
pageKey: "home",
aspectRatio: "16:9",
itemCount: null,
recommendedWidth: 1538,
},
{
key: HOME_SLOT_KEYS.besideSlider,
label: "Banners beside slider",
kind: "list" as const,
pageKey: "home",
aspectRatio: "74:41",
itemCount: 2,
recommendedWidth: 370,
},
{
key: HOME_SLOT_KEYS.twoBannerRow,
label: "Two banner row",
kind: "list" as const,
pageKey: "home",
aspectRatio: "569:264",
itemCount: 2,
recommendedWidth: 569,
},
{
key: HOME_SLOT_KEYS.oneBannerRow,
label: "Discount banner",
kind: "single" as const,
pageKey: "home",
aspectRatio: "146:33",
itemCount: 1,
recommendedWidth: 1168,
},
];
export type StaticImage = { export type StaticImage = {
id: string; id: string;
url: string; url: string;