From d9f44dac7a8f64f27f05e3061125bfdf8a191cd5 Mon Sep 17 00:00:00 2001 From: Kubosaka Date: Wed, 3 Apr 2024 18:34:29 +0900 Subject: [PATCH] =?UTF-8?q?=E7=92=B0=E5=A2=83=E5=A4=89=E6=95=B0=E3=82=92do?= =?UTF-8?q?ckerfile=E3=81=AB=E8=A8=98=E5=85=A5=E3=80=81=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=83=AA=E3=83=B3=E3=82=AF=E3=82=92=E7=92=B0?= =?UTF-8?q?=E5=A2=83=E3=81=A7=E5=A4=89=E6=9B=B4=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/Dockerfile | 4 ++++ .../src/components/sponsoractivities/DetailPage2.tsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/view/Dockerfile b/view/Dockerfile index 790b52e59..ab6791fa2 100644 --- a/view/Dockerfile +++ b/view/Dockerfile @@ -5,3 +5,7 @@ WORKDIR /app/next-project COPY ./ /app ENV API_URL='http://localhost:1323' +ENV NEXT_PUBLIC_ENDPOINT='192.168.176.1' +ENV NEXT_PUBLIC_PORT=9000 +ENV NEXT_PUBLIC_BUCKET_NAME='finansu' +ENV NEXT_PUBLIC_MINIO_ENDPONT='http://localhost:9000' diff --git a/view/next-project/src/components/sponsoractivities/DetailPage2.tsx b/view/next-project/src/components/sponsoractivities/DetailPage2.tsx index ad0c5426a..86738d779 100644 --- a/view/next-project/src/components/sponsoractivities/DetailPage2.tsx +++ b/view/next-project/src/components/sponsoractivities/DetailPage2.tsx @@ -66,7 +66,7 @@ const DetailPage2: FC = (props) => { sponsorActivityInformations.map((activityInformation) => { const bucketName = activityInformation.bucketName; const fileName = activityInformation.fileName; - return `http://127.0.0.1:9000/${bucketName}/${fileName}`; + return `${process.env.NEXT_PUBLIC_MINIO_ENDPONT}/${bucketName}/${fileName}`; }); const download = async (url: string, fileName: string) => {