Refactor: enhance API response schemas for pagination; update environment variables for Supabase and Vision API; improve Vite configuration for proxy routing
This commit is contained in:
@@ -15,9 +15,8 @@ import {
|
||||
} from '../types';
|
||||
import { performanceMonitor } from '../utils/performanceMonitor';
|
||||
|
||||
// Configuration - Use environment variable or default to vision container
|
||||
// The API is accessible at localhost:8000 in the current setup
|
||||
const API_BASE_URL = import.meta.env.VITE_VISION_API_URL || 'http://localhost:8000';
|
||||
// Configuration - Prefer env var; default to relative "/api" so Vite proxy can route to the API container
|
||||
const API_BASE_URL = import.meta.env.VITE_VISION_API_URL || '/api';
|
||||
|
||||
/**
|
||||
* Custom error class for video API errors
|
||||
|
||||
Reference in New Issue
Block a user