Feature/fixed scene load 404 (#254)

need netlify preview

Co-authored-by: Victor <victor@storyteller.ai>
This commit is contained in:
Victor OandVictor authored and GitHub committed 2024-04-26 20:52:40 -04:00
1 parent 035e4f447b
commit 2fc081e6ef
1 file changed
+2 -2
+2 -2
View File
@@ -123,7 +123,7 @@ export class APIManager {
const json = await JSON.parse(await response.text());
const bucket_path = json["media_file"]["public_bucket_path"];
const media_base_url = environmentVariables.value.GOOGLE_API;
const media_url = `/vocodes-public${media_base_url}${bucket_path}`; // gets you a bucket path
const media_url = `${media_base_url}/vocodes-public${bucket_path}`; // gets you a bucket path
const file_response = await fetch(media_url);
@@ -154,7 +154,7 @@ export class APIManager {
const json = await JSON.parse(await response.text());
const bucketPath = json["media_file"]["public_bucket_path"];
const media_base_url = environmentVariables.value.GOOGLE_API;
const media_url = `/vocodes-public${media_base_url}${bucketPath}`; // gets you a bucket path
const media_url = `${media_base_url}/vocodes-public${bucket_path}`; // gets you a bucket path
return media_url;
}