Fix API_BASE in OnlyOfficeEditor to include /api prefix
All checks were successful
Automated Container Build / build-and-push (push) Successful in 38s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 38s
This commit is contained in:
parent
8b58c1d3cb
commit
8375406f9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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';
|
||||
};
|
||||
|
||||
|
|
|
|||
Reference in a new issue