From 169387958e0b804d144075e2b4085b3fec066e28 Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Mon, 1 Jun 2026 09:44:37 -0700 Subject: [PATCH] fix snapshot URL builder --- src/queries/sql/heatmap/ensureHeatmapSnapshot.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts b/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts index 86252ebf6..a194deb42 100644 --- a/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts +++ b/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts @@ -316,7 +316,10 @@ async function findClickhouseSnapshot( } function getSnapshotImageUrl(websiteId: string, snapshotId: string) { - return getApiUrl(`/websites/${websiteId}/heatmaps/snapshots/${snapshotId}`); + return getApiUrl(`/websites/${websiteId}/heatmaps/snapshots/${snapshotId}`, { + apiUrl: process.env.API_URL, + basePath: process.env.BASE_PATH, + }); } function mapSnapshot(websiteId: string, row: SnapshotRecord): HeatmapSnapshotImage {