aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers/fetchSolution.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/fetchSolution.ts
parentece68c2492481afc37250c99440c6bfc5af6ad53 (diff)
migrate project from CRA to vite
Diffstat (limited to 'src/helpers/fetchSolution.ts')
-rw-r--r--src/helpers/fetchSolution.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers/fetchSolution.ts b/src/helpers/fetchSolution.ts
index 5f5e2f3..38872cd 100644
--- a/src/helpers/fetchSolution.ts
+++ b/src/helpers/fetchSolution.ts
@@ -1,7 +1,7 @@
import { Song } from "../types/song";
-const SALT = process.env.REACT_APP_HEARDLE_SALT ?? 'changeme';
-const API_URL = process.env.REACT_APP_HEARDLE_API_URL ?? 'https://127.0.0.1:3001';
+const SALT = import.meta.env.VITE_HEARDLE_SALT ?? 'changeme';
+const API_URL = import.meta.env.VITE_HEARDLE_API_URL ?? 'https://127.0.0.1:3001';
function hexToBytes(hex: string): Uint8Array {
const bytes = new Uint8Array(hex.length / 2);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage