Aharonla / Tea-Presale-Front

0 stars 0 forks source link

64-remove-unnecessary-environmental-variables #65

Open SorooshDeveloper opened 5 months ago

SorooshDeveloper commented 5 months ago

updated env values and removed extra variables

Aharonla commented 4 months ago

@SorooshDeveloper The code in this PR doesn't run. Look at the issue description, and push once the specified changes are made and the UI runs properly

SorooshDeveloper commented 4 months ago

@Aharonla
hello, ive tested the code its working ok for me what is the error you are getting ?

also this is what your .env.develmpent should look like :

VITE_INFURA_API_KEY=https://sepolia.infura.io/v3/API_KEY Screenshot 2024-05-01 at 11 35 39 PM

Aharonla commented 4 months ago

@SorooshDeveloper Rename VITE_INFURA_API_KEY to VITE_INFURA_RPC_URL. VITE_INFURA_API_KEY is confusing because it indicates input of the API key instead of the URL. Add two files to the filesystem - .env.development.example and .env.production.example as instructed in the issue, and add in the documentation instructions to edit those (remove postfix so that the file names are .env.development and .env.production, and add the API key to the example URL - https://sepolia.infura.io/v3/MY_KEY and https://mainnet.infura.io/v3/MY_KEY instead of MY_KEY).

SorooshDeveloper commented 4 months ago

@Aharonla updated please check