diff --git a/.github/workflows/deploy-stg.yml b/.github/workflows/deploy-stg.yml index 791e84e..9bb7c32 100644 --- a/.github/workflows/deploy-stg.yml +++ b/.github/workflows/deploy-stg.yml @@ -33,7 +33,7 @@ jobs: preview_output: true project_name: subscan-pro-lowcode dist_path: build - script_build: yarn build + script_build: yarn build:stg enable_cache: true cache_type: yarn alias_domain: subscan-pro-lowcode-staging diff --git a/package.json b/package.json index a5d948a..569bb19 100644 --- a/package.json +++ b/package.json @@ -67,8 +67,10 @@ }, "scripts": { "start": "REACT_APP_CHANNEL=subscan REACT_APP_SUBSCAN_PRO_API=https://platform-staging.subscan.io react-scripts start", - "start:local": "REACT_APP_SUBSCAN_PRO_API=https://platform-staging.subscan.io react-scripts start", - "build": "REACT_APP_CHANNEL=subscan REACT_APP_SUBSCAN_PRO_API=https://platform-staging.subscan.io react-scripts build", + "start:stg-local": "REACT_APP_SUBSCAN_PRO_API=https://platform-staging.subscan.io react-scripts start", + "start:prd-local": "REACT_APP_SUBSCAN_PRO_API=https://platform.subscan.io react-scripts start", + "build": "REACT_APP_CHANNEL=subscan REACT_APP_SUBSCAN_PRO_API=https://platform.subscan.io react-scripts build", + "build:stg": "REACT_APP_CHANNEL=subscan REACT_APP_SUBSCAN_PRO_API=https://platform-staging.subscan.io react-scripts build", "build:local": "REACT_APP_SUBSCAN_PRO_API=https://platform-staging.subscan.io react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject",