Skip to content

Commit

Permalink
revert back apiKey for public repo (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
NadiyaS committed Aug 26, 2024
1 parent 3d189c8 commit 5adf34f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions src/context/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@ const StoreContextProvider = ({
userViewHistory: context?.userViewHistory ?? [],
},
apiUrl: environmentType?.toLowerCase() === 'testing' ? TEST_URL : API_URL,
apiKey: environmentType?.toLowerCase() === 'testing' ? API_KEY : apiKey,
//This is for the publix repo setup
// apiKey:
// environmentType?.toLowerCase() === 'testing' && !apiKey
// ? SANDBOX_KEY
// : apiKey,
apiKey:
environmentType?.toLowerCase() === 'testing' && !apiKey
? SANDBOX_KEY
: apiKey,
route,
searchQuery,
}),
Expand Down
1 change: 1 addition & 0 deletions src/types/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ declare global {
const WIDGET_CONFIG_URL: string;
const LS_API_URL: string;
const API_KEY: string;
const SANDBOX_KEY: string;
const TEST_URL: string;
const FLOODGATE_CLIENT_ID: string;
const FLOODGATE_API_KEY: string;
Expand Down

0 comments on commit 5adf34f

Please sign in to comment.