Skip to content

Commit

Permalink
Merge pull request #724 from NUTFes/fix-minio-csr-path
Browse files Browse the repository at this point in the history
表示するリンクを環境で変更するように修正
  • Loading branch information
Kubosaka authored Apr 3, 2024
2 parents c1c0823 + d9f44da commit 9b41d48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions view/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const DetailPage2: FC<ModalProps> = (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) => {
Expand Down

0 comments on commit 9b41d48

Please sign in to comment.