build(fix makefile): switch auth from instat to insports

keep-around/b214ac7012ef42593bee62c207888a2593bc5a38
Andrei Dekterev 3 years ago
parent 7109d539ac
commit f41611946c
  1. 18
      Makefile
  2. 6
      src/config/routes.tsx
  3. 2
      src/features/AuthStore/helpers.tsx
  4. 10
      src/features/SystemSettings/components/APISettings/index.tsx
  5. 2
      src/react-app-env.d.ts

@ -26,63 +26,63 @@ build-a: clean
REACT_APP_TYPE=ott \
REACT_APP_ENV=staging \
REACT_APP_CLIENT=insports \
REACT_APP_STAGE=a-staging \
REACT_APP_STAGE=test-a \
npm run build
build-b: clean
REACT_APP_TYPE=ott \
REACT_APP_ENV=staging \
REACT_APP_CLIENT=insports \
REACT_APP_STAGE=b-staging \
REACT_APP_STAGE=test-b \
npm run build
build-c: clean
REACT_APP_TYPE=ott \
REACT_APP_ENV=staging \
REACT_APP_CLIENT=insports \
REACT_APP_STAGE=c-staging \
REACT_APP_STAGE=test-c \
npm run build
build-d: clean
REACT_APP_TYPE=ott \
REACT_APP_ENV=staging \
REACT_APP_CLIENT=insports \
REACT_APP_STAGE=d-staging \
REACT_APP_STAGE=test-d \
npm run build
build-e: clean
REACT_APP_TYPE=ott \
REACT_APP_ENV=staging \
REACT_APP_CLIENT=insports \
REACT_APP_STAGE=e-staging \
REACT_APP_STAGE=test-e \
npm run build
build-f: clean
REACT_APP_TYPE=ott \
REACT_APP_ENV=staging \
REACT_APP_CLIENT=insports \
REACT_APP_STAGE=f-staging \
REACT_APP_STAGE=test-f \
npm run build
build-g: clean
REACT_APP_TYPE=ott \
REACT_APP_ENV=staging \
REACT_APP_CLIENT=insports \
REACT_APP_STAGE=g-staging \
REACT_APP_STAGE=test-g \
npm run build
build-h: clean
REACT_APP_TYPE=ott \
REACT_APP_ENV=staging \
REACT_APP_CLIENT=insports \
REACT_APP_STAGE=h-staging \
REACT_APP_STAGE=test-h \
npm run build
build-i: clean
REACT_APP_TYPE=ott \
REACT_APP_ENV=staging \
REACT_APP_CLIENT=insports \
REACT_APP_STAGE=i-staging \
REACT_APP_STAGE=test-i \
npm run build
auth-build:

@ -4,7 +4,7 @@ import { ENV, isProduction } from './env'
export const APIS = {
preproduction: {
api: 'https://api.insports.tv', // 'https://api-aws-stage.instat.tv:11630',
api: 'https://api.insports.tv',
auth: 'https://auth.insports.tv',
},
production: {
@ -12,8 +12,8 @@ export const APIS = {
auth: 'https://auth.insports.tv',
},
staging: {
api: 'https://api.insports.tv',
auth: 'https://auth.insports.tv',
api: 'https://api.test.insports.tv',
auth: 'https://auth.test.insports.tv',
},
}

@ -36,7 +36,7 @@ const redirectUrl = () => {
case (process.env.NODE_ENV === 'development' || client.name === 'lff'):
return `${window.origin}/redirect`
case (ENV === 'staging' || ENV === 'preproduction'):
return `https://${stageENV}.instat.tv/redirect`
return `https://${stageENV}.insports.tv/redirect`
default:
return `https://${clientName}.tv/redirect`
}

@ -30,11 +30,11 @@ const options: Array<Option> = [
key: 'staging',
label: 'STAGE-OLD',
},
{
details: getHost(APIS.preproduction.api),
key: 'preproduction',
label: 'STAGE-AWS',
},
// {
// details: getHost(APIS.preproduction.api),
// key: 'preproduction',
// label: 'STAGE-AWS',
// },
{
details: getHost(APIS.production.api),
key: 'production',

@ -5,7 +5,7 @@ declare namespace NodeJS {
export interface ProcessEnv {
REACT_APP_CLIENT: 'instat' | 'facr' | 'lff' | 'insports',
REACT_APP_ENV: 'production' | 'preproduction' | 'staging',
REACT_APP_STAGE: 'staging' | 'a-staging' | 'b-staging' | 'c-staging' | 'd-staging' | 'e-staging' | 'f-staging' | 'g-staging' | 'h-staging' | 'i-staging',
REACT_APP_STAGE: 'staging' | 'test-a' | 'test-b' | 'test-c' | 'test-d' | 'test-e' | 'test-f' | 'test-g' | 'test-h' | 'test-i',
REACT_APP_TYPE: 'auth-service' | 'ott',
}
}

Loading…
Cancel
Save