fix: Configure admin service URLs dynamically based on environment
All checks were successful
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 11s
build-and-deploy / filter (push) Successful in 2s

- Update adminService to fetch server URL from /api/config endpoint
- Initialize server URL before making any API calls
- Make connect() method async to handle URL initialization
- Update Vue component to await adminService.connect()
- Resolves hardcoded localhost URLs in production environment
This commit is contained in:
2025-07-05 16:51:11 -06:00
parent f3d1365588
commit 5b6b05f840
2 changed files with 27 additions and 2 deletions

View File

@@ -129,7 +129,7 @@ onMounted(async () => {
serverUrl.value = config.serverUrl
// Connect to SSE
adminService.connect((data) => {
await adminService.connect((data) => {
if (data.type === 'connected') {
isConnected.value = true
} else if (data.type === 'gameStats') {