Skip to content

Commit

Permalink
checking deploy preview
Browse files Browse the repository at this point in the history
  • Loading branch information
mishramonalisha76 committed Oct 14, 2024
1 parent 5a15ee5 commit d0c1484
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions basePath.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@ export function getPreviewBasePath() {
This checks if the current domain is localhost and uses the localhost Infura key accordingly.
*/
export function getInfuraAPIKey(key) {
return window.location.hostname === 'localhost' && typeof import.meta !== 'undefined' && import.meta.env
? import.meta.env.VITE_APP_INFURA_PROJECT_ID
: key;
return key;
}

0 comments on commit d0c1484

Please sign in to comment.