There is lot of hardcoding links in application (#3130)

* There is lot of hardcoding links in application

* Apply suggestions from code review

Co-authored-by: Joe Au-Yeung <[email protected]>

Co-authored-by: gitstart <[email protected]>
Co-authored-by: Omar López <[email protected]>
Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-07-01 11:19:52 -06:00
1 parent 669199e273
commit 00c9df7602
16 files changed
+60 -37

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
import slugify from "@calcom/lib/slugify";
import { WEBSITE_URL } from "@calcom/lib/constants";
export type ResponseUsernameApi = {
available: boolean;
@@ -9,7 +10,7 @@ export type ResponseUsernameApi = {
export async function checkPremiumUsername(_username: string): Promise<ResponseUsernameApi> {
const username = slugify(_username);
const response = await fetch("https://cal.com/api/username", {
const response = await fetch(`${ WEBSITE_URL }/api/username`, {
credentials: "include",
headers: {
"Content-Type": "application/json",