Product pages emit crawler-readable meta, public URLs use id plus Farsi slugs, and the homepage catalog matches the dashboard slot keys. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
496 B
TypeScript
18 lines
496 B
TypeScript
import sitemapConfig from "@/lib/sitemap-config.generated.json";
|
|
|
|
const headers = {
|
|
"Access-Control-Allow-Origin": "*",
|
|
"Access-Control-Allow-Methods": "GET, OPTIONS",
|
|
"Access-Control-Allow-Headers": "Content-Type",
|
|
"Cache-Control": "public, max-age=60",
|
|
"Content-Type": "application/json; charset=utf-8",
|
|
};
|
|
|
|
export async function OPTIONS() {
|
|
return new Response(null, { status: 204, headers });
|
|
}
|
|
|
|
export async function GET() {
|
|
return Response.json(sitemapConfig, { headers });
|
|
}
|