fix: centralize app API URL fallbacks
app-ci-deploy / test-build-deploy (push) Has been cancelled

This commit is contained in:
2026-05-28 19:26:00 +01:00
parent 65ce1bede8
commit fedbd903ff
27 changed files with 110 additions and 38 deletions
@@ -5,6 +5,7 @@
import { Editor, TLStoreEventInfo } from '@tldraw/tldraw';
import { useTranscriptionStore } from '../../stores/transcriptionStore';
import { API_BASE } from '../../../../config/apiConfig';
export class CanvasEventLogger {
private editor: Editor | null = null;
@@ -221,7 +222,7 @@ export class CanvasEventLogger {
this.buffer = [];
try {
const response = await fetch('http://192.168.0.64:8000/transcribe/canvas-events', {
const response = await fetch(`${API_BASE}/transcribe/canvas-events`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',