From 9adb139bb8f6b701b189aedaf85373528911205a Mon Sep 17 00:00:00 2001 From: jester Date: Tue, 7 Apr 2026 21:09:31 +0000 Subject: [PATCH] Archive resolved: hardcoded-ips-portal --- SCRATCH/hardcoded-ips-portal.md | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 SCRATCH/hardcoded-ips-portal.md diff --git a/SCRATCH/hardcoded-ips-portal.md b/SCRATCH/hardcoded-ips-portal.md deleted file mode 100644 index 115abb5..0000000 --- a/SCRATCH/hardcoded-ips-portal.md +++ /dev/null @@ -1,21 +0,0 @@ -# Hardcoded IPs in zpac-portal — Need to Move to ENV - -## All in one env var -All four hardcoded IPs are fallbacks for `NEXT_PUBLIC_API_BASE_URL`. -Just set this in `.env.local` and all four are fixed automatically: - -``` -NEXT_PUBLIC_API_BASE_URL=http://:4000 -``` - -## Files affected -| File | Fallback IP | -|------|-------------| -| src/app/(dashboard)/servers/page.tsx | 10.60.0.245:4000 | -| src/app/(dashboard)/servers/console/ServerConsole.tsx | 10.60.0.245:4000 | -| src/lib/api-client.ts | 10.60.0.245:4000 | -| src/lib/api/legacy.ts | 10.60.0.245:4000 | - -## Notes -- No code changes needed — just set NEXT_PUBLIC_API_BASE_URL in .env.local -- Consider removing the hardcoded fallbacks entirely post-migration so a missing env var fails loudly instead of silently using a wrong IP