diff --git a/contracts/src/bridge/frontend/Dockerfile b/contracts/src/bridge/frontend/Dockerfile index 3d9032af61..1618f5b024 100644 --- a/contracts/src/bridge/frontend/Dockerfile +++ b/contracts/src/bridge/frontend/Dockerfile @@ -8,17 +8,11 @@ COPY ./contracts/src/bridge/frontend /home/obscuro/go-obscuro/contracts/src/brid WORKDIR /home/obscuro/go-obscuro/contracts/src/bridge/frontend # ARG for build-time variable -ARG API_HOST -ARG L1_BRIDGE -ARG L2_BRIDGE -ARG MESSAGE_BUS +ARG BRIDGE_ENVIRONMENT 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_L1=${L1_BRIDGE} -ENV NEXT_PUBLIC_BRIDGE_L2=${L2_BRIDGE} -ENV NEXT_PUBLIC_BRIDGE_MESSAGE_BUS=${MESSAGE_BUS} +ENV NEXT_PUBLIC_BRIDGE_API_HOST_ENVIRONMENT=${BRIDGE_ENVIRONMENT} ENV NEXT_PUBLIC_BRIDGE_GOOGLE_ANALYTICS_ID=${GOOGLE_ANALYTICS_ID} RUN npm install diff --git a/contracts/src/bridge/frontend/env.example b/contracts/src/bridge/frontend/env.example index 013fe5b0d7..daf0a1a4ec 100644 --- a/contracts/src/bridge/frontend/env.example +++ b/contracts/src/bridge/frontend/env.example @@ -1,6 +1,6 @@ -NEXT_PUBLIC_BRIDGE_ENVIRONMENT=sepolia|uat|dev +NEXT_PUBLIC_BRIDGE_API_HOST_ENVIRONMENT=sepolia|uat|dev -NEXT_PUBLIC_PRIVATE_KEY= +NEXT_PUBLIC_BRIDGE_PRIVATE_KEY= NEXT_PUBLIC_BRIDGE_GOOGLE_ANALYTICS_ID= diff --git a/contracts/src/bridge/frontend/src/lib/constants.ts b/contracts/src/bridge/frontend/src/lib/constants.ts index 007d0466e6..7fe63363f6 100644 --- a/contracts/src/bridge/frontend/src/lib/constants.ts +++ b/contracts/src/bridge/frontend/src/lib/constants.ts @@ -1,4 +1,4 @@ -export const environment = process.env.NEXT_PUBLIC_BRIDGE_ENVIRONMENT; +export const environment = process.env.NEXT_PUBLIC_BRIDGE_API_HOST_ENVIRONMENT; export const apiHost = `https://${environment}-testnet-api.tenscan.io`; @@ -39,6 +39,8 @@ export const getOptions = (query: { export const GOOGLE_ANALYTICS_ID = process.env.NEXT_PUBLIC_BRIDGE_GOOGLE_ANALYTICS_ID; +export const privateKey = process.env.NEXT_PUBLIC_BRIDGE_PRIVATE_KEY; + export const L1CHAINS = [ { name: "Ethereum",