Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit 9bd5de6

Browse files
committed
changed function to use apiEndpoint
1 parent 9420a09 commit 9bd5de6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3077,7 +3077,7 @@ class File extends ServiceObject<File> {
30773077
* // Will return "https://storage.googleapis.com/albums/my-file"
30783078
*/
30793079
publicUrl(): string {
3080-
return `${STORAGE_POST_POLICY_BASE_URL}/${this.bucket.name}/${this.name}`;
3080+
return `${this.storage.apiEndpoint}/${this.bucket.name}/${this.name}`;
30813081
}
30823082

30833083
move(

0 commit comments

Comments
 (0)