Skip to content

Commit dfb40e7

Browse files
committed
chore: properly resolve base urls
1 parent d40bf75 commit dfb40e7

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

TheGreenEpochWeb/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<meta property="og:title" content="TheGreenEpoch" />
99
<meta property="og:description" content="CO₂-aware LLM training simulator. Optimize training schedules for cleaner energy." />
1010
<meta property="og:type" content="website" />
11-
<link rel="shortcut icon" type="image/ico" href="/src/assets/favicon.ico" />
1211

1312
<link rel="preconnect" href="https://fonts.googleapis.com" />
1413
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />

TheGreenEpochWeb/src/data/loadData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Constants, TrainingProfile, Scenario, CO2Timeline } from "../types";
22

3-
const BASE = "/data";
3+
const BASE = `${import.meta.env.BASE_URL}data`;
44

55
export async function loadConstants(): Promise<Constants> {
66
const r = await fetch(`${BASE}/constants.json`);

0 commit comments

Comments
 (0)