This commit is contained in:
Linus Flood
2024-11-04 08:48:03 +01:00
parent 34cea3ca78
commit 415964536f

View File

@@ -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) {