mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #2047 from appwrite/fix-cross-region-deployment-screenshots
Fix: cross-region deployment preview screenshots
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import { humanFileSize } from '$lib/helpers/sizeConvertion';
|
||||
import { formatTimeDetailed } from '$lib/helpers/timeConversion';
|
||||
import type { Models } from '@appwrite.io/console';
|
||||
import { page } from '$app/state';
|
||||
import {
|
||||
Badge,
|
||||
Divider,
|
||||
@@ -45,7 +46,7 @@
|
||||
}
|
||||
|
||||
function getFilePreview(fileId: string) {
|
||||
return sdk.forConsole.storage.getFileView('screenshots', fileId);
|
||||
return sdk.forConsoleIn(page.params.region).storage.getFileView('screenshots', fileId);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
}
|
||||
|
||||
function getFilePreview(fileId: string) {
|
||||
return sdk.forConsole.storage.getFileView('screenshots', fileId);
|
||||
return sdk.forConsoleIn(page.params.region).storage.getFileView('screenshots', fileId);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user