Skip to content

Commit

Permalink
update API host env variable in Dockerfile
Browse files Browse the repository at this point in the history
and constants
  • Loading branch information
Jennievon committed Sep 30, 2024
1 parent 092b2b3 commit f33cc62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tools/bridge-frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ARG GOOGLE_ANALYTICS_ID

# ENV for URL to be used in the app
ENV NEXT_PUBLIC_BRIDGE_API_HOST=${API_HOST}
ENV NEXT_PUBLIC_BRIDGE_API_HOST_ENVIRONMENT=${API_HOST_ENVIRONMENT}
ENV NEXT_PUBLIC_API_HOST_ENVIRONMENT=${API_HOST_ENVIRONMENT}
ENV NEXT_PUBLIC_BRIDGE_GOOGLE_ANALYTICS_ID=${GOOGLE_ANALYTICS_ID}

RUN pnpm install
Expand Down
6 changes: 1 addition & 5 deletions tools/bridge-frontend/src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ export const getOptions = (query: {
};

export const apiHost = process.env.NEXT_PUBLIC_BRIDGE_API_HOST;
export const environment = process.env.NEXT_PUBLIC_BRIDGE_API_HOST_ENVIRONMENT;

export const l1Bridge = process.env.NEXT_PUBLIC_BRIDGE_L1;
export const l2Bridge = process.env.NEXT_PUBLIC_BRIDGE_L2;
export const messageBusAddress = process.env.NEXT_PUBLIC_BRIDGE_MESSAGE_BUS;
export const environment = process.env.NEXT_PUBLIC_API_HOST_ENVIRONMENT;

export const GOOGLE_ANALYTICS_ID =
process.env.NEXT_PUBLIC_BRIDGE_GOOGLE_ANALYTICS_ID;
Expand Down

0 comments on commit f33cc62

Please sign in to comment.