Update env name

This commit is contained in:
Howard Tam 2022-12-10 10:01:14 -08:00
parent c5dfc1e9af
commit 7843588411
2 changed files with 4 additions and 1 deletions

2
.gitignore vendored
View File

@ -23,3 +23,5 @@ yarn-debug.log*
yarn-error.log* yarn-error.log*
.yalc .yalc
.env*

View File

@ -7,7 +7,8 @@ import "./App.css";
window.LitJsSdk = LitJsSdk; window.LitJsSdk = LitJsSdk;
window.ethers = ethers; window.ethers = ethers;
const RELAY_API_URL = process.env.RELAY_API_URL || 'http://localhost:3001'; const RELAY_API_URL =
process.env.REACT_APP_RELAY_API_URL || "http://localhost:3001";
function App() { function App() {
const [pkpEthAddress, setPkpEthAddress] = useState(null); const [pkpEthAddress, setPkpEthAddress] = useState(null);