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 22f4b24 commit 41f988b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
6 changes: 3 additions & 3 deletions basePath.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export function getPreviewBasePath() {
/*
This checks if the current domain is localhost and uses the localhost Infura key accordingly.
*/
export function getInfuraAPIKey(key) {
return key;
}
// export function getInfuraAPIKey(key) {
// return window.location.hostname === 'localhost' ? import.meta.env.VITE_APP_INFURA_PROJECT_ID : key;
// }
6 changes: 5 additions & 1 deletion src/config/config-alpha.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { getInfuraAPIKey } from '../../basePath';

// environmental configurations for the dapp for different environments
const infuraAPIKey = getInfuraAPIKey('dd262cc008764b29bd6a15249db4772e');
const infuraAPIKey =
window.location.hostname === 'localhost'
? import.meta.env.VITE_APP_INFURA_PROJECT_ID
: 'dd262cc008764b29bd6a15249db4772e';
// const infuraAPIKey = getInfuraAPIKey('dd262cc008764b29bd6a15249db4772e');
export const config = {
/**
* Push Nodes Environment - can be dev, staging or prod - important to keep one on one connection
Expand Down
5 changes: 4 additions & 1 deletion src/config/config-dev.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { getInfuraAPIKey } from '../../basePath';

// environmental configurations for the dapp for different environments
const infuraAPIKey = getInfuraAPIKey('be75cf427a5c41f9badb591994019d22');
const infuraAPIKey =
window.location.hostname === 'localhost'
? import.meta.env.VITE_APP_INFURA_PROJECT_ID
: 'be75cf427a5c41f9badb591994019d22';
export const config = {
/**
* Push Nodes Environment - can be dev, staging or prod - important to keep one on one connection
Expand Down
6 changes: 5 additions & 1 deletion src/config/config-prod.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { getInfuraAPIKey } from '../../basePath';

// environmental configurations for the dapp for different environments
const infuraAPIKey = getInfuraAPIKey('dd262cc008764b29bd6a15249db4772e');
const infuraAPIKey =
window.location.hostname === 'localhost'
? import.meta.env.VITE_APP_INFURA_PROJECT_ID
: 'dd262cc008764b29bd6a15249db4772e';
// const infuraAPIKey = getInfuraAPIKey('dd262cc008764b29bd6a15249db4772e');
export const config = {
/**
* Push Nodes Environment - can be dev, staging or prod - important to keep one on one connection
Expand Down
6 changes: 5 additions & 1 deletion src/config/config-staging.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { getInfuraAPIKey } from '../../basePath';

// environmental configurations for the dapp for different environments
const infuraAPIKey = getInfuraAPIKey('be75cf427a5c41f9badb591994019d22');
const infuraAPIKey =
window.location.hostname === 'localhost'
? import.meta.env.VITE_APP_INFURA_PROJECT_ID
: 'be75cf427a5c41f9badb591994019d22';
// const infuraAPIKey = getInfuraAPIKey('be75cf427a5c41f9badb591994019d22');
export const config = {
/**
* Push Nodes Environment - can be dev, staging or prod - important to keep one on one connection
Expand Down

0 comments on commit 41f988b

Please sign in to comment.