Commit Graph

14 Commits

Author SHA1 Message Date
nineap 818d4fa384 Serve bot_username at runtime instead of baking it into the SPA build
Auth.tsx and Profile.tsx read import.meta.env.VITE_BOT_USERNAME — a Vite
build-time constant. This ЛК frontend is a single static bundle built
once in CI and served identically by both prod and dev (no
server-rendering to re-inject a value per environment, unlike the
Next.js landing fix from earlier). So the Telegram Login Widget on the
dev stand was rendering with whatever bot the CI build happened to be
compiled with — in practice the fallback default, the prod bot's
username — and Telegram correctly refused it with "Bot domain invalid"
since that bot's registered domain is the prod domain, not
dev.netrunner-vpn.com.

Added GET /api/v1/config (unauthenticated, reads BOT_USERNAME from the
server's actual environment on every request) and switched both files to
fetch it at runtime instead of reading the baked-in env var. Verified
locally: the dev container's /api/v1/config correctly returns its own
dev bot's username, and a real headless Chrome run confirms the Login
Widget script tag gets that value, not the hardcoded fallback.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-05 14:21:55 +07:00
nineap 26d6f2db8a deploy change, update token system, fix abuses and add admin verify 2026-05-26 12:50:25 +07:00
nineap 1ef93c2025 [AI] fix some modules, develop the big part of modules. TODO fix critical errors, update pipeline, test everything 2026-05-16 19:16:50 +07:00
nineap cf85fbdd73 build fix 2026-04-28 19:46:46 +07:00
nineap eebe10967d game update 2026-04-28 19:41:31 +07:00
nineap 03d3a072d3 api update 2026-04-25 18:21:24 +07:00
nineap 19ac192866 api fix 2026-04-25 15:09:09 +07:00
nineap 0dc6562dd2 trial log, profile fixes 2026-04-24 16:11:56 +07:00
nineap 24e3a6de44 trial updates 2026-04-24 15:51:03 +07:00
nineap 40f7de803b subs and fixes hack game 2026-04-23 15:35:12 +07:00
nineap 963eb01357 game and maybe database fix 2026-04-23 14:39:21 +07:00
nineap 4057d039b8 pipeline and codebase updates 2026-04-22 10:16:58 +07:00
nineap 4910b479bd Initial commit 2026-04-20 14:30:18 +07:00
nineap b03d8cf556 [AI] initial commit 2026-04-19 17:15:50 +07:00