From 0ea31947adcdf599f10dfb82a57b0e7fd9164295 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Wed, 3 Jun 2026 14:56:18 -0700 Subject: migrate project from CRA to vite --- src/helpers/fetchSongs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helpers/fetchSongs.ts') diff --git a/src/helpers/fetchSongs.ts b/src/helpers/fetchSongs.ts index b403a52..f2d91a2 100644 --- a/src/helpers/fetchSongs.ts +++ b/src/helpers/fetchSongs.ts @@ -6,7 +6,7 @@ function fuzzyMatch(input: string): string { export async function fetchSongs(useCache=true): Promise { - const API_URL = process.env.REACT_APP_HEARDLE_API_URL || "http://localhost:3001"; + const API_URL = import.meta.env.VITE_HEARDLE_API_URL || "http://localhost:3001"; if (useCache && cachedSongs) { return cachedSongs; } -- cgit v1.2.3