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:
16 files changed
+60
-37
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user