Update orgDomains.ts

This commit is contained in:
zomars 2023-06-12 16:56:25 -07:00
parent 9e7fbefa51
commit 249129e9d2

View File

@ -1,7 +1,15 @@
import { WEBAPP_URL } from "@calcom/lib/constants";
// Define which hostnames are expected for the app
export const appHostnames = ["cal.com", "cal.dev", "cal-staging.com", "cal.community", "cal.local:3000"];
export const appHostnames = [
"cal.com",
"cal.dev",
"cal-staging.com",
"cal.community",
"cal.local:3000",
// ⬇️ Prevents 404 error for normal localhost development, makes it backwards compatible
"localhost:3000",
];
export function getOrgDomain(hostname: string) {
// Find which hostname is being currently used