Skip to content

Commit

Permalink
Update environment variable and API host URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennievon committed Aug 7, 2024
1 parent a03bb1c commit 12df673
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/manual-deploy-ten-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
name: ${{ github.event.inputs.testnet_type }}-fe-ten-bridge
location: "uksouth"
restart-policy: "Never"
environment-variables: NEXT_PUBLIC_BRIDGE_API_HOST=https://${{ github.event.inputs.testnet_type }}-api.tenscan.io NEXT_PUBLIC_FE_VERSION=${{ GITHUB.RUN_NUMBER }}-${{ GITHUB.SHA }}
environment-variables: NEXT_PUBLIC_BRIDGE_API_HOST_ENVIRONMENT=${{ github.event.inputs.testnet_type }} NEXT_PUBLIC_FE_VERSION=${{ GITHUB.RUN_NUMBER }}-${{ GITHUB.SHA }}
command-line: npm run start-prod
ports: "80"
cpu: 2
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/bridge/frontend/src/lib/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const environment = process.env.NEXT_PUBLIC_BRIDGE_API_HOST_ENVIRONMENT;

export const apiHost = `https://${environment}-testnet-api.tenscan.io`;
export const apiHost = `https://${environment}-api.tenscan.io`;

export const socialLinks = {
github: "https://github.com/ten-protocol",
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/bridge/frontend/src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const NavLinks: NavLink[] = [

export const apiRoutes = {
getHealthStatus: `/info/health/`,
getObscuroConfig: `http://erpc.${environment}-testnet.obscu.ro:80/`,
getObscuroConfig: `http://erpc.${environment}.obscu.ro:80/`,
};

export const requestMethods = {
Expand Down

0 comments on commit 12df673

Please sign in to comment.