fix: use WORKER_URL for networking API to fix connections loading
The connectionService was using a relative path '/api/networking' which caused requests to go to the Pages frontend URL instead of the Worker API. This resulted in HTML being returned instead of JSON. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
101f386f4a
commit
57c49096de
|
|
@ -19,12 +19,13 @@ import type {
|
||||||
GraphEdge,
|
GraphEdge,
|
||||||
TrustLevel,
|
TrustLevel,
|
||||||
} from './types';
|
} from './types';
|
||||||
|
import { WORKER_URL } from '../../constants/workerUrl';
|
||||||
|
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
// Configuration
|
// Configuration
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
|
|
||||||
const API_BASE = '/api/networking';
|
const API_BASE = `${WORKER_URL}/api/networking`;
|
||||||
|
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
// Helper Functions
|
// Helper Functions
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue