don't leak storyteller.ai studio features

This commit is contained in:
Brandon Thomas committed 2024-03-13 23:20:49 -04:00
1 parent 7eb003f515
commit 2b4879d1d5
3 files changed
+19 -6

No files matched your search

+4 -2
View File
@@ -46,7 +46,8 @@ class ApiConfig {
break;
case "storyteller.ai":
case "staging.storyteller.ai":
apiHost = "api.storyteller.ai";
//apiHost = "api.storyteller.ai";
apiHost = "api.fakeyou.com";
break;
case "storyteller.stream":
// Storyteller.stream is deprecated and will be decommissioned in the future.
@@ -61,7 +62,8 @@ class ApiConfig {
case "devproxy.storyteller.ai":
case "devproxy.storyteller.ai:7000":
case "devproxy.storyteller.ai:7001":
apiHost = "api.storyteller.ai";
//apiHost = "api.storyteller.ai";
apiHost = "api.fakeyou.com";
useSsl = true;
break;
case "dev.fakeyou.com":
+4 -2
View File
@@ -15,13 +15,15 @@ export default function GetApiHost() {
return hostConfig("api.fakeyou.com");
case "storyteller.ai":
case "staging.storyteller.ai":
return hostConfig("api.storyteller.ai");
//return hostConfig("api.storyteller.ai");
return hostConfig("api.fakeyou.com");
case "storyteller.stream": // Storyteller.stream is deprecated and will be decommissioned in the future.
return hostConfig("api.storyteller.stream");
case "devproxy.fakeyou.com":
return hostConfig("api.fakeyou.com");
case "devproxy.storyteller.ai":
return hostConfig("api.storyteller.ai");
//return hostConfig("api.storyteller.ai");
return hostConfig("api.fakeyou.com");
case "dev.fakeyou.com":
return hostConfig("api.dev.fakeyou.com:12345",false); // false disables SSL
default:
@@ -45,7 +45,16 @@ function LandingPage(props: Props) {
const isLoggedIn = props.sessionWrapper.isLoggedIn();
const canAccessStudio = props.sessionWrapper.canAccessStudio();
// DO NOT LEAK THIS YET!!
let protectedStudioOnboarding = <></>
if (props.sessionWrapper.canAccessStudio()) {
protectedStudioOnboarding = (
<>
<OnboardingSelection />
</>
);
}
return (
<>
@@ -83,7 +92,7 @@ function LandingPage(props: Props) {
{/* STORYTELLER,AI */}
{!isLoggedIn ? (
<>
{!canAccessStudio && <OnboardingSelection />}
{protectedStudioOnboarding}
<VstSectionV2 />
<TtsDemoSection
sessionWrapper={props.sessionWrapper}