Openstatus www.openstatus.dev
at main 20 lines 678 B view raw
1import { isSameDay } from "./utils"; 2 3/** 4 * Blacklist dates where we had issues with data collection 5 */ 6export const blacklistDates: Record<string, string> = { 7 "Fri Aug 25 2023": 8 "OpenStatus faced issues between 24.08. and 27.08., preventing data collection.", 9 "Sat Aug 26 2023": 10 "OpenStatus faced issues between 24.08. and 27.08., preventing data collection.", 11 "Wed Oct 18 2023": 12 "OpenStatus migrated from Vercel to Fly to improve the performance of the checker.", 13}; 14 15export function isInBlacklist(day: Date) { 16 const el = Object.keys(blacklistDates).find((date) => 17 isSameDay(new Date(date), day), 18 ); 19 return el ? blacklistDates[el] : undefined; 20}