Skip to content

Commit

Permalink
remove BBP_ID as environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhirverma committed Jan 13, 2025
1 parent a31eb83 commit 5ddc39d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ COPY . .
ARG VITE_API_BASE_URL
ENV VITE_API_BASE_URL=${VITE_API_BASE_URL}

ARG VITE_BPP_ID
ENV VITE_BPP_ID=${VITE_BPP_ID}

ARG VITE_BAP_ID
ENV VITE_BAP_ID=${VITE_BAP_ID}

Expand Down
1 change: 0 additions & 1 deletion example.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
PORT=3000
VITE_API_BASE_URL=''
VITE_BPP_ID=''
VITE_BAP_ID=''
1 change: 0 additions & 1 deletion src/services/env.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export const API_BASE_URL = import.meta.env.VITE_API_BASE_URL;
export const VITE_BPP_ID = import.meta.env.VITE_BPP_ID;
export const VITE_BAP_ID = import.meta.env.VITE_BAP_ID;
6 changes: 1 addition & 5 deletions src/services/marketplace-service.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { useQuery } from "@tanstack/react-query";
import { httpService } from "./http-service";
import { api } from "./apis";
import { VITE_BAP_ID, VITE_BPP_ID } from "./env";


import { VITE_BAP_ID } from "./env";

export interface ProductListItem {
totalPrice: number
Expand Down Expand Up @@ -171,8 +169,6 @@ const getData = (searchString: string, categoryName: string) => ({
action: "search",
version: "1.1.0",
transaction_id: "ead489b8-81de-49a4-baf6-8d8de7eabf32",
bpp_id: VITE_BPP_ID,
bpp_uri: `http://${VITE_BPP_ID}`,
bap_id: VITE_BAP_ID,
bap_uri: `http://${VITE_BAP_ID}`,
message_id: "1d07c819-695c-44ab-bd47-c21678a6ba4e",
Expand Down

0 comments on commit 5ddc39d

Please sign in to comment.