From 476d2edddd5d87aa88f74d1f86750e7e3f5bec11 Mon Sep 17 00:00:00 2001 From: WoeOm <1015996366@qq.com> Date: Fri, 12 May 2023 15:49:25 +0800 Subject: [PATCH] build: update production api (#20) --- .github/workflows/deploy-stg.yml | 2 +- package.json | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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",