From c824b1b4d72551cb17e6f1bb1bb91db470ce035c Mon Sep 17 00:00:00 2001 From: Surat Das Date: Wed, 1 Jan 2025 12:24:03 -0500 Subject: [PATCH 1/2] Support of S3 storage, backend API now redirects to the right url (local or s3) --- src/services/static.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/static.service.ts b/src/services/static.service.ts index bc3e0e1..38c2db8 100644 --- a/src/services/static.service.ts +++ b/src/services/static.service.ts @@ -5,7 +5,7 @@ import axios from "axios"; import FileSaver from "file-saver"; function getImage(name: string): string { - if (name) return `${API_URL}/${name}`; + if (name) return `${API_URL}/images/${name}`; return noImage; } From 78f0868f2c74e3104837b558a73f6bdcb8795253 Mon Sep 17 00:00:00 2001 From: Surat Das Date: Sat, 4 Jan 2025 20:41:56 -0500 Subject: [PATCH 2/2] Fixed the tests. --- integration_tests/utils/mocks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration_tests/utils/mocks.ts b/integration_tests/utils/mocks.ts index 8d2cf96..546d1dc 100644 --- a/integration_tests/utils/mocks.ts +++ b/integration_tests/utils/mocks.ts @@ -76,7 +76,7 @@ export const mockTestRun = async (page: Page, testRun: TestRun) => { }; export const mockImage = async (page: Page, image: string) => { - return page.route(`${API_URL}/${image}`, (route) => + return page.route(`${API_URL}/images/${image}`, (route) => route.fulfill({ path: `integration_tests/images/${image}`, }),