mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
Feature/fixed scene load 404 (#254)
need netlify preview Co-authored-by: Victor <victor@storyteller.ai>
This commit is contained in:
1 parent
035e4f447b
commit
2fc081e6ef
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user