From 7b98afbac27f8e6f37822fc3fef47b6d88e656e8 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Mon, 15 Apr 2024 12:15:58 -0400 Subject: [PATCH] allow studio on all hostnames --- .../src/utils/StudioRolloutHostnameAllowed.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/components/src/utils/StudioRolloutHostnameAllowed.ts b/packages/components/src/utils/StudioRolloutHostnameAllowed.ts index e98bfd83b9..3098a929b8 100644 --- a/packages/components/src/utils/StudioRolloutHostnameAllowed.ts +++ b/packages/components/src/utils/StudioRolloutHostnameAllowed.ts @@ -7,13 +7,14 @@ export function StudioRolloutHostnameAllowed() : boolean { } function StudioRolloutHostnameCheck() : boolean { - // Do not allow "production" or "staging" domains to use studio yet. - // Other domains (local development and feature branches) are allowed. - switch (window.location.hostname) { - case 'fakeyou.com': - case 'storyteller.ai': - return false; - default: - return true; - } + //// Do not allow "production" or "staging" domains to use studio yet. + //// Other domains (local development and feature branches) are allowed. + //switch (window.location.hostname) { + // case 'fakeyou.com': + // case 'storyteller.ai': + // return false; + // default: + // return true; + //} + return true; }