Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Load Apibara Script Variables from Environment #25

Merged
merged 3 commits into from
Apr 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
TAdev0 committed Apr 11, 2024
commit 3b934fc553d377a6a456ff64b1a48edd8e0f1316
2 changes: 0 additions & 2 deletions indexer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -25,8 +25,6 @@ services:
- XDG_DATA_HOME=/data
- APIBARA_STREAM_URL=http://art-peace-apibara-1:7171
- TARGET_URL=http://art-peace-backend-1:8080/consumeIndexerMsg
- LOCALHOST_STREAM_URL=http://localhost:7171
- LOCALHOST_TARGET_URL=http://localhost:8080/consumeIndexerMsg

volumes:
- dna:/data
6 changes: 2 additions & 4 deletions indexer/docker-script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export const config = {
streamUrl:
Deno.env.get("APIBARA_STREAM_URL") || Deno.env.get("LOCALHOST_STREAM_URL"),
streamUrl: Deno.env.get("APIBARA_STREAM_URL"),
startingBlock: 0,
network: "starknet",
finality: "DATA_STATUS_PENDING",
@@ -19,8 +18,7 @@ export const config = {
},
sinkType: "webhook",
sinkOptions: {
targetUrl:
Deno.env.get("SINK_TARGET_URL") || Deno.env.get("LOCALHOST_TARGET_URL"),
targetUrl: Deno.env.get("TARGET_URL"),
},
};