Merge pull request #2047 from appwrite/fix-cross-region-deployment-screenshots

Fix: cross-region deployment preview screenshots
This commit is contained in:
Matej Bačo
2025-06-26 12:38:07 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
@@ -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>