Skip to content

Commit

Permalink
fix(explorer): allow overriding internal indexer env variables (#3237)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs authored Sep 26, 2024
1 parent 798192d commit 85bbeb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lucky-dodos-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/explorer": patch
---

It is now possible to pass in environment variables like `RPC_HTTP_URL` to the internal local indexer when running the explorer locally.
2 changes: 1 addition & 1 deletion packages/explorer/src/bin/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ async function startStoreIndexer() {
cwd: packageRoot,
stdio: "inherit",
env: {
...process.env,
DEBUG: "mud:*",
RPC_HTTP_URL: "http://127.0.0.1:8545",
FOLLOW_BLOCK_TAG: "latest",
SQLITE_FILENAME: indexerDatabase,
STORE_ADDRESS: worldAddress,
...process.env,
},
});
}
Expand Down

0 comments on commit 85bbeb8

Please sign in to comment.