diff --git a/components/Image.tsx b/components/Image.tsx index accfdb19b..dc40069cd 100644 --- a/components/Image.tsx +++ b/components/Image.tsx @@ -7,17 +7,14 @@ import type { CSSProperties } from "react" import type { ImageProps } from "@/types/components/image" -const isBlockedByFirewall = (src: string) => { - if ( +function isBlockedByFirewall(src: string): boolean { + return ( src.includes("test.scandichotels.com") || src.includes("test2.scandichotels.com") || src.includes("test3.scandichotels.com") || src.includes("stage.scandichotels.com") || src.includes("prod.scandichotels.com") - ) { - return true - } - return false + ) } function imageLoader({ quality, src, width }: ImageLoaderProps) {