Files
2026-04-01 16:12:19 +02:00

12 lines
324 B
JavaScript

import { buildSocialPreviewResponse } from './_lib/socialPreview.js';
export async function onRequest(context) {
const pathname = new URL(context.request.url).pathname;
if (pathname.startsWith('/movie/') || pathname.startsWith('/tv/')) {
return context.next();
}
return buildSocialPreviewResponse(context);
}