Skip to content

Commit

Permalink
Update slug (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin authored Apr 7, 2022
1 parent 76a409c commit cb29473
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ REACT_APP_FORTMATIC_SITE_VERIFICATION="LzjrtdM7hqVJfvvA"

# Domain regex (to detect environment)
REACT_APP_DOMAIN_REGEX_LOCAL="^(:?localhost:\d{2,5}|(?:127|192)(?:\.[0-9]{1,3}){3})"
REACT_APP_DOMAIN_REGEX_PR="^pr\d+--gpswapui\.review"
REACT_APP_DOMAIN_REGEX_PR="^pr\d+--cowswap\.review"
REACT_APP_DOMAIN_REGEX_DEV="^cowswap\.dev"
REACT_APP_DOMAIN_REGEX_STAGING="^cowswap\.staging"
REACT_APP_DOMAIN_REGEX_PROD="^cowswap\.exchange$"
Expand Down
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ REACT_APP_FORTMATIC_KEY_PROD="pk_live_7BD8004CBBF5CDD6"

# Domain regex (to detect environment)
REACT_APP_DOMAIN_REGEX_LOCAL="^(:?localhost:\d{2,5}|(?:127|192)(?:\.[0-9]{1,3}){3})"
REACT_APP_DOMAIN_REGEX_PR="^pr\d+--gpswapui\.review"
REACT_APP_DOMAIN_REGEX_PR="^pr\d+--cowswap\.review"
REACT_APP_DOMAIN_REGEX_DEV="^cowswap\.dev"
REACT_APP_DOMAIN_REGEX_STAGING="^cowswap\.staging"
REACT_APP_DOMAIN_REGEX_PROD="^cowswap\.exchange$"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ipfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
tags: [v*]

env:
REPO_NAME_SLUG: gpswapui
REPO_NAME_SLUG: cowswap
REACT_APP_PINATA_API_KEY: ${{ secrets.REACT_APP_PINATA_API_KEY }}
REACT_APP_PINATA_SECRET_API_KEY: ${{ secrets.REACT_APP_PINATA_SECRET_API_KEY }}

Expand Down
2 changes: 1 addition & 1 deletion src/custom/constants/appDataHash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ export function getAppDataHash(): string {
default:
break
}
return 'no'
return DEFAULT_APP_DATA
}
4 changes: 2 additions & 2 deletions src/custom/utils/environments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ describe('Detect environments using host and path', () => {
describe('Is PR', () => {
const isPr = { ...DEFAULT_ENVIRONMENTS_CHECKS, isPr: true }

it('pr<NUMBER>--gpswapui.review.gnosisdev.com', () => {
expect(checkEnvironment('pr1291--gpswapui.review.gnosisdev.com', '')).toEqual(isPr)
it('pr<NUMBER>--cowswap.review.gnosisdev.com', () => {
expect(checkEnvironment('pr1291--cowswap.review.gnosisdev.com', '')).toEqual(isPr)
})
})

Expand Down

0 comments on commit cb29473

Please sign in to comment.