Skip to content

Commit f967f5d

Browse files
fix: remove protocol while building url with PUBLIC_URL
1 parent e7d6c33 commit f967f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { twMerge } from "tailwind-merge";
33

44
export function getBaseUrl() {
55
if (typeof window !== "undefined") return window.location.origin;
6-
if (process.env.PUBLIC_URL) return `https://${process.env.PUBLIC_URL}`;
6+
if (process.env.PUBLIC_URL) return process.env.PUBLIC_URL;
77
return `http://localhost:${process.env.PORT ?? 3000}`;
88
}
99

0 commit comments

Comments
 (0)