Fix frontend API: use relative /api with Vite proxy to agent
CI / basic-check (push) Has been cancelled
CI / basic-check (push) Has been cancelled
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { NetObject, ServiceInfo } from '../types';
|
||||
|
||||
const AGENT_BASE = 'http://127.0.0.1:8001';
|
||||
const AGENT_BASE = '/api';
|
||||
|
||||
export async function fetchObjects(): Promise<NetObject[]> {
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user