Fix QA setup

This commit is contained in:
Matej Bačo
2025-02-21 23:55:17 +01:00
parent cfe570af62
commit efe013524f
2 changed files with 12 additions and 2 deletions
@@ -24,6 +24,7 @@
import { app } from '$lib/stores/app';
import { base } from '$app/paths';
import { isCloud } from '$lib/system';
import { getApiEndpoint } from '$lib/stores/sdk';
export let deployment: Models.Deployment;
export let proxyRuleList: Models.ProxyRuleList = { total: 0, rules: [] };
@@ -49,7 +50,11 @@
function getFilePreview(fileId: string) {
// TODO: @Meldiron use sdk.forConsole.storage.getFilePreview
return `http://localhost/v1/storage/buckets/screenshots/files/${fileId}/view?project=console&mode=admin`;
const endpoint = getApiEndpoint();
return (
endpoint +
`/storage/buckets/screenshots/files/${fileId}/view?project=console&mode=admin`
);
}
</script>
@@ -15,6 +15,7 @@
import { getFrameworkIcon } from './store';
import { SvgIcon } from '$lib/components';
import { app } from '$lib/stores/app';
import { getApiEndpoint } from '$lib/stores/sdk';
export let siteList: Models.SiteList;
export let deployments: Models.Deployment[];
@@ -39,7 +40,11 @@
function getFilePreview(fileId: string) {
// TODO: @Meldiron use sdk.forConsole.storage.getFilePreview
return `http://localhost/v1/storage/buckets/screenshots/files/${fileId}/view?project=console&mode=admin`;
const endpoint = getApiEndpoint();
return (
endpoint +
`/storage/buckets/screenshots/files/${fileId}/view?project=console&mode=admin`
);
}
</script>