diff --git a/Makefile b/Makefile index 389af50e..8514d155 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,14 @@ build: clean REACT_APP_ENV=staging \ REACT_APP_CLIENT=instat \ npm run build - + +build-stage: clean + REACT_APP_TYPE=ott \ + REACT_APP_ENV=preproduction \ + REACT_APP_CLIENT=instat \ + REACT_APP_STRIPE_PK=pk_live_51J5TEYEDSxVnTgDW7v2lF8GGogrm7XaaICZ9CN876sITIBBauZgB2ommUTUOiY868jzpbhQjZcoBOjIRX5Vs54Aq00y4C3USyB \ + npm run build + build-a: clean REACT_APP_TYPE=ott \ REACT_APP_ENV=staging \ @@ -113,7 +120,7 @@ facr-prod: clean deploy-all: prod preprod facr-prod -stage: build +stage: build-stage rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/wwwroot/ a-stage: build-a diff --git a/src/features/AuthStore/helpers.tsx b/src/features/AuthStore/helpers.tsx index 730edd37..07c6bdeb 100644 --- a/src/features/AuthStore/helpers.tsx +++ b/src/features/AuthStore/helpers.tsx @@ -23,7 +23,7 @@ const redirectUrl = () => { if (process.env.NODE_ENV === 'development') { return `${window.origin}/redirect` } - if (ENV === 'staging') { + if (ENV === 'staging' || ENV === 'preproduction') { return `https://${stageENV}.instat.tv/redirect` } return `https://${client.name}.tv/redirect`