Skip to content

Commit eb13822

Browse files
committed
add uploads.guimcode to iscodegrid url check
1 parent 8a5b4c9 commit eb13822

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dotcom-rendering/src/lib/image.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ const getServiceFromUrl = (url: URL): string => {
5050
}
5151
};
5252

53-
const isCodeGridUrl = (url: URL) => url.hostname === 'media.guimcode.co.uk';
53+
const isCodeGridUrl = (url: URL) =>
54+
url.hostname === 'media.guimcode.co.uk' ||
55+
url.hostname === 'uploads.guimcode.co.uk';
5456

5557
/**
5658
* Generates a URL for calling the Fastly Image Optimiser.

0 commit comments

Comments
 (0)