aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers/fetchSongs.ts
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-06-03 14:56:18 -0700
committerPinapelz <yukais@pinapelz.com>2026-06-03 14:56:18 -0700
commit0ea31947adcdf599f10dfb82a57b0e7fd9164295 (patch)
tree7433c0ef243debcd814e214aa5ce49cd976b9e4e /src/helpers/fetchSongs.ts
parentece68c2492481afc37250c99440c6bfc5af6ad53 (diff)
migrate project from CRA to vite
Diffstat (limited to 'src/helpers/fetchSongs.ts')
-rw-r--r--src/helpers/fetchSongs.ts2
1 files changed, 1 insertions, 1 deletions
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<Song[]> {
- 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;
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage