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"