loop-benchmarking

Controlled experiments across agentic coding configurations. Same task, one variable, what actually works.
git clone https://git.shiptheloop.com/loop-benchmarking.git
Log | Files | Refs | README

commit b2013ff82112d8a2dcc2ae66b5079b774ac1e47b
parent 1faf94e22b8b5d1181ae2c8cc880dc972fd3f07a
Author: Brian Graham <brian@buildingbetterteams.de>
Date:   Fri,  3 Apr 2026 19:25:33 +0200

Fix results path resolution for Astro build

Use process.cwd() instead of import.meta.url/dirname for resolving
the results directory. Vite transforms import.meta during build which
broke the path. process.cwd() reliably points to dashboard/ during
both local and CI builds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Diffstat:
Mdashboard/src/lib/data.ts | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dashboard/src/lib/data.ts b/dashboard/src/lib/data.ts @@ -1,10 +1,10 @@ import fs from "node:fs"; import path from "node:path"; +import { fileURLToPath } from "node:url"; -const RESULTS_DIR = path.resolve( - import.meta.dirname || __dirname, - "../../../results" -); +// Use process.cwd() which in Astro build is the dashboard/ directory. +// Go up one level to the project root, then into results/. +const RESULTS_DIR = path.resolve(process.cwd(), "../results"); export interface RunMeta { run_id: string;

Impressum · Datenschutz