File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/routes/(console)/project-[region]-[project]/sites Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
22
import { isCloud } from ' $lib/system' ;
23
23
import { getApiEndpoint } from ' $lib/stores/sdk' ;
24
24
import { capitalize } from ' $lib/helpers/string' ;
25
+ import { page } from ' $app/state' ;
25
26
26
27
export let deployment: Models .Deployment ;
27
28
export let proxyRuleList: Models .ProxyRuleList ;
46
47
47
48
function getFilePreview(fileId : string ) {
48
49
// TODO: @Meldiron use sdk.forConsole.storage.getFilePreview
49
- const endpoint = getApiEndpoint ();
50
+ const endpoint = getApiEndpoint (page . params . region );
50
51
return endpoint + ` /storage/buckets/screenshots/files/${fileId }/view?project=console ` ;
51
52
}
52
53
</script >
Original file line number Diff line number Diff line change 34
34
35
35
function getFilePreview(fileId : string ) {
36
36
// TODO: @Meldiron use sdk.forConsole.storage.getFilePreview
37
- const endpoint = getApiEndpoint ();
37
+ const endpoint = getApiEndpoint (page . params . region );
38
38
return endpoint + ` /storage/buckets/screenshots/files/${fileId }/view?project=console ` ;
39
39
}
40
40
</script >
You can’t perform that action at this time.
0 commit comments