From 5e9a06e41e62c66788734b08666c4580b7275e0b Mon Sep 17 00:00:00 2001 From: anjaemin Date: Fri, 4 Nov 2022 20:13:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20env=20react=20=EA=B7=9C=EC=B9=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/pages/api/index.tsx | 2 +- src/pages/delete/index.tsx | 2 +- src/pages/download/index.tsx | 2 +- src/pages/filelist/index.tsx | 2 +- src/pages/main/index.tsx | 2 +- src/pages/postApi/index.tsx | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.env b/.env index 1952fa5..bbf7b16 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ PUBLIC_URL=/tempfiles-frontend -BACKEND_BASEURL= https://tfb.minpeter.cf \ No newline at end of file +REACT_APP_BACKEND_BASEURL= https://tfb.minpeter.cf \ No newline at end of file diff --git a/src/pages/api/index.tsx b/src/pages/api/index.tsx index 8d0c1d8..b37f91a 100644 --- a/src/pages/api/index.tsx +++ b/src/pages/api/index.tsx @@ -13,7 +13,7 @@ export const ApiPage: React.FC = () => { const getApiInfo = async () => { await axios({ method: 'get', - url: `${process.env.BACKEND_BASEURL}/info`, + url: `${process.env.REACT_APP_BACKEND_BASEURL}/info`, }) .then((res) => { setApiInfo(res.data); diff --git a/src/pages/delete/index.tsx b/src/pages/delete/index.tsx index 5116824..27b7d62 100644 --- a/src/pages/delete/index.tsx +++ b/src/pages/delete/index.tsx @@ -20,7 +20,7 @@ export const DeletePage: React.FC = () => { const deleteFile = async () => { await axios({ method: 'delete', - url: `${process.env.BACKEND_BASEURL}/del/${DeleteFileName}`, + url: `${process.env.REACT_APP_BACKEND_BASEURL}/del/${DeleteFileName}`, }) .then((res) => { console.log(res); diff --git a/src/pages/download/index.tsx b/src/pages/download/index.tsx index ed6d5b7..5bf111e 100644 --- a/src/pages/download/index.tsx +++ b/src/pages/download/index.tsx @@ -29,7 +29,7 @@ export const DownloadPage: React.FC = () => { {year}-{month}-{day} - +