From 560eaec3265a86afbd6bb07c91125ceb6383e8d5 Mon Sep 17 00:00:00 2001 From: iOdiO89 <117376841+iOdiO89@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:02:25 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20env=20build=EC=97=90=20=ED=8F=AC?= =?UTF-8?q?=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- src/react-app-env.d.ts | 1 - yarn.lock | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a2481c1..813d86d 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "dayjs": "^1.11.12", "dotenv": "^16.4.5", "electron-is-dev": "^3.0.1", + "env-cmd": "^10.1.0", "framer-motion": "^11.3.30", "jotai": "^2.9.0", "jotai-devtools": "^0.10.0", @@ -34,7 +35,7 @@ }, "scripts": { "start": "react-scripts start", - "build": "react-scripts build", + "build": "env-cmd -f .env react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "dev": "concurrently \"cross-env NODE_ENV=development BROWSER=none yarn start\" \"wait-on http://localhost:3000 && electron .\"", diff --git a/src/react-app-env.d.ts b/src/react-app-env.d.ts index 1aa2220..a790a91 100644 --- a/src/react-app-env.d.ts +++ b/src/react-app-env.d.ts @@ -4,6 +4,5 @@ declare namespace NodeJS { interface ProcessEnv { REACT_APP_API_URL: string REACT_APP_KAKAO_REST_KEY: string - REACT_APP_KAKAO_JS_KEY: string } } diff --git a/yarn.lock b/yarn.lock index dadb2a8..92293d8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4855,6 +4855,14 @@ entities@^2.0.0: resolved "https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55" integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A== +env-cmd@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/env-cmd/-/env-cmd-10.1.0.tgz#c7f5d3b550c9519f137fdac4dd8fb6866a8c8c4b" + integrity sha512-mMdWTT9XKN7yNth/6N6g2GuKuJTsKMDHlQFUDacb/heQRRWOTIZ42t1rMHnQu4jYxU1ajdTeJM+9eEETlqToMA== + dependencies: + commander "^4.0.0" + cross-spawn "^7.0.0" + env-paths@^2.2.0: version "2.2.1" resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.1.tgz#420399d416ce1fbe9bc0a07c62fa68d67fd0f8f2" From 3e2110c948d16331ef491b3e93aa2e04f3b92a93 Mon Sep 17 00:00:00 2001 From: iOdiO89 <117376841+iOdiO89@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:06:46 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20build=20script=20=EB=B6=84?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/s3Deploy.yml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/s3Deploy.yml b/.github/workflows/s3Deploy.yml index d87d1ad..299de3f 100644 --- a/.github/workflows/s3Deploy.yml +++ b/.github/workflows/s3Deploy.yml @@ -21,7 +21,7 @@ jobs: run: yarn install - name: Build React - run: yarn build + run: yarn env-build - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v2 diff --git a/package.json b/package.json index 813d86d..89e782b 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ }, "scripts": { "start": "react-scripts start", - "build": "env-cmd -f .env react-scripts build", + "env-build": "env-cmd -f .env react-scripts build", + "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "dev": "concurrently \"cross-env NODE_ENV=development BROWSER=none yarn start\" \"wait-on http://localhost:3000 && electron .\"",