重新验证后端用于读取队列并重新验证路由。它仅用于 ISR (Incremental Static Regeneration)。
对于每条接收到的消息,它将向主机发送带有 x-prerender-revalidate
头的 HEAD
请求。
特殊事件和结果类型
interface RevalidateEvent {
type: "revalidate";
records: {
host: string;
url: string;
}[];
}
interface RevalidateResult {
type: "revalidate";
}