fix snapshot URL builder

This commit is contained in:
Francis Cao
2026-06-01 09:44:37 -07:00
parent 60ec6d2e91
commit 169387958e
@@ -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 {