diff --git a/src/components/Componentes/question-photo.tsx b/src/components/Componentes/question-photo.tsx index 8c6a778..67f496d 100644 --- a/src/components/Componentes/question-photo.tsx +++ b/src/components/Componentes/question-photo.tsx @@ -276,10 +276,7 @@ export function QuestionPhoto({ question.ui_config?.source || "gallery"; - const uploadUrl = - typeof window !== "undefined" - ? `${window.location.origin}/api/proxy?__proxyPath=/upload-tmp-media/` - : undefined; + const uploadUrl = `${process.env.NEXT_PUBLIC_API_BASE_URL ?? ""}/upload-tmp-media/`; uploadFile({ requestId: String(question.id),