import {
  ApiResponse,
  searchParams
} from "../request-response";
async function manifestHandler(req, { apiKey, manifest }) {
  const secret = searchParams(req).get("secret");
  if (secret !== apiKey) {
    return ApiResponse.json({ message: "Unauthorized" }, { status: 401 });
  }
  return ApiResponse.json({
    version: "0.26.3",
    interactionMode: true,
    clientSideNavigation: false,
    elementFromPoint: false,
    customBreakpoints: true,
    siteVersions: true,
    unstable_siteVersions: true,
    localizedPageSSR: true,
    webhook: true,
    localizedPagesOnlineByDefault: true,
    previewToken: true,
    ...manifest ?? {}
  });
}
export {
  manifestHandler
};
//# sourceMappingURL=manifest.js.map