Browse Source

fix(photo-upload): revert uploadUrl to direct NEXT_PUBLIC_API_BASE_URL — proxy caused 502 on mobile

master
parent
commit
2eca53d219
  1. 5
      src/components/Componentes/question-photo.tsx

5
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),

Loading…
Cancel
Save