We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 994cb73 + 91390b1 commit ec5b065Copy full SHA for ec5b065
src/middleware.ts
@@ -19,7 +19,6 @@ const cleanOrigin = (str: string) => {
19
20
return domain;
21
} catch (error) {
22
- console.error("error", error);
23
return str; // Return the original string if it's not a valid URL
24
}
25
};
@@ -39,7 +38,7 @@ const isNetlifyPreview = (str: string) => {
39
38
40
41
const isCloudflarePreview = (str: string) => {
42
- if (str.endsWith("pages.dev") || "trycloudflare.com") {
+ if (str.endsWith("pages.dev") || str.endsWith("trycloudflare.com")) {
43
return true;
44
45
return false;
0 commit comments