From 00cc48603b7b24d78343f488034fb776c97f1ce3 Mon Sep 17 00:00:00 2001 From: esaminu Date: Thu, 21 Sep 2023 22:31:28 +0400 Subject: [PATCH] chore: move REACT_APP_BASE_PATH env --- .github/workflows/deploy-main.yml | 2 ++ src/utils/config.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-main.yml b/.github/workflows/deploy-main.yml index 2573ff0d..fc52ddbc 100644 --- a/.github/workflows/deploy-main.yml +++ b/.github/workflows/deploy-main.yml @@ -10,6 +10,8 @@ concurrency: cancel-in-progress: true jobs: + env: + REACT_APP_BASE_PATH: 'fastauth' deploy-testnet: uses: ./.github/workflows/bundle-and-deploy.yml with: diff --git a/src/utils/config.ts b/src/utils/config.ts index bc6a1f2a..01b3e26c 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -59,4 +59,4 @@ export const networks: Record = { export const networkId: NetworkId = (process.env.NETWORK_ID as NetworkId) || 'mainnet'; export const network = networks[networkId]; -export const basePath = process.env.REACT_APP_BASE_PATH || 'fastauth'; +export const basePath = process.env.REACT_APP_BASE_PATH || '';