Browse Source

Merge branch 'staging' of https://git.nwhco.ir/sina_sajjadi/marriage into staging

staging
Ali Alavi 4 days ago
parent
commit
da90075f37
  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 || question.ui_config?.source ||
"gallery"; "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({ uploadFile({
requestId: String(question.id), requestId: String(question.id),

Loading…
Cancel
Save