diff --git a/server/routers/domain/createOrgDomain.ts b/server/routers/domain/createOrgDomain.ts index 4e2acdbf..6c3585f0 100644 --- a/server/routers/domain/createOrgDomain.ts +++ b/server/routers/domain/createOrgDomain.ts @@ -82,7 +82,7 @@ export async function createOrgDomain( ) ); } - } else if (build == "enterprise" || build == "saas") { + } else if (build == "saas") { if (type !== "ns" && type !== "cname") { return next( createHttpError( @@ -92,6 +92,7 @@ export async function createOrgDomain( ); } } + // allow wildacard, cname, and ns in enterprise // Validate organization exists if (!isValidDomain(baseDomain)) { @@ -104,7 +105,7 @@ export async function createOrgDomain( // many providers dont allow cname for this. Lets prevent it for the user for now return next( createHttpError( - HttpCode.BAD_REQUEST, + HttpCode.BAD_REQUEST, "You cannot create a CNAME record on a root domain. RFC 1912 ยง 2.4 prohibits CNAME records at the zone apex. Please use a subdomain." ) ); diff --git a/src/components/PathMatchRenameModal.tsx b/src/components/PathMatchRenameModal.tsx index 101dea19..b06d776b 100644 --- a/src/components/PathMatchRenameModal.tsx +++ b/src/components/PathMatchRenameModal.tsx @@ -70,7 +70,7 @@ export function PathMatchModal({ Set up how incoming requests should be matched based on their path. -