diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-06-03 03:52:44 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-06-03 03:52:44 -0700 |
| commit | b1c92e09707a423b7b5b01ccb60ba59a91d9f055 (patch) | |
| tree | e15dbca0f613f1fff6b6761772fc69b47a3e3412 /src | |
| parent | 6c2f3296295b7b1f02ef24846db0640401101b20 (diff) | |
fix env var naming for CRA
Diffstat (limited to 'src')
| -rw-r--r-- | src/helpers/fetchSolution.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helpers/fetchSolution.ts b/src/helpers/fetchSolution.ts index 2726049..d271dd0 100644 --- a/src/helpers/fetchSolution.ts +++ b/src/helpers/fetchSolution.ts @@ -1,14 +1,14 @@ import { Song } from "../types/song"; -const SALT = process.env.NEXT_HEARDLE_SALT ?? 'changeme'; -const API_URL = process.env.NEXT_HEARDLE_API_URL ?? 'http://localhost:3001'; +const SALT = process.env.REACT_APP_HEARDLE_SALT ?? 'changeme'; +const API_URL = process.env.REACT_APP_HEARDLE_API_URL ?? 'http://23:432e3001'; function hexToBytes(hex: string): Uint8Array { const bytes = new Uint8Array(hex.length / 2); for (let i = 0; i < hex.length; i += 2) { bytes[i / 2] = parseInt(hex.slice(i, i + 2), 16); } - return bytes; +return bytes; } |
