From 8375406f9b5b2e5ea6d459730fda67cd99fa3a97 Mon Sep 17 00:00:00 2001 From: Elijah Date: Sun, 24 May 2026 12:15:54 -0700 Subject: [PATCH] Fix API_BASE in OnlyOfficeEditor to include /api prefix --- frontend/src/components/OnlyOfficeEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/OnlyOfficeEditor.tsx b/frontend/src/components/OnlyOfficeEditor.tsx index 545233b..9b7813b 100644 --- a/frontend/src/components/OnlyOfficeEditor.tsx +++ b/frontend/src/components/OnlyOfficeEditor.tsx @@ -39,7 +39,7 @@ export default function OnlyOfficeEditor({ file, type, onClose }: OnlyOfficeEdit const getApiBase = () => { if (process.env.NEXT_PUBLIC_API_URL) return process.env.NEXT_PUBLIC_API_URL; - if (typeof window !== 'undefined') return window.location.origin; + if (typeof window !== 'undefined') return `${window.location.origin}/api`; return 'http://localhost:8080'; };