Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 516 Bytes

connect-dotenv.md

File metadata and controls

18 lines (15 loc) · 516 Bytes

dotenv 변수 연결해서 사용하는 방법

  • dotenv-cli

    • 예시

      "scripts": {
          "start": "react-app-rewired start",
          "build-dev": "dotenv -e .env.development react-app-rewired build",
          "build-prod": "dotenv -e .env.production react-app-rewired build",
          "build": "react-app-rewired build",
          "test": "react-app-rewired test --env=jsdom",
          "eject": "react-scripts eject"   
      }
  • dotenv

    • 예시