We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 380a3d7 commit 9085a01Copy full SHA for 9085a01
packages/commons/docs-utils/src/isPreviewUrl.ts
@@ -3,12 +3,6 @@ export function isPreviewDomain(domain: string): boolean {
3
// The uuid part can be truncated, so allow trailing dash and partial uuid
4
const previewUuidPattern = /preview-[0-9a-f-]+/i;
5
const hasPattern = previewUuidPattern.test(domain);
6
- // Add logs for debugging
7
- if (typeof console !== "undefined" && typeof console.log === "function") {
8
- console.log(`[isPreviewDomain] Checking domain: ${domain}`);
9
- console.log(`[isPreviewDomain] Pattern: ${previewUuidPattern}`);
10
- console.log(`[isPreviewDomain] Match result: ${hasPattern}`);
11
- }
12
return hasPattern;
13
}
14
0 commit comments