Skip to content

Commit

Permalink
Add environment on wrangler.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto committed Jan 4, 2024
1 parent de26d51 commit a13924b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions arb-gateway/wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name = "arb-sepolia-gateway-worker"
name = "arb-gateway-worker"
account_id = "15dcc9085cb794bb4f29d3e8177ac880"
main = "./src/worker.ts"
node_compat = true
compatibility_date = "2023-10-13"


[dev]
port = 8080

[build]
command = "yarn build"

[vars]
[env.sepolia]
name = "arb-sepolia-gateway-worker"
2 changes: 1 addition & 1 deletion op-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ wrangler secret put L1_PROVIDER_URL
wrangler secret put L2_PROVIDER_URL
wrangler secret put L2_OUTPUT_ORACLE
wrangler secret put DELAY
yarn deploy
yarn deploy --env op-sepolia // or --env base-sepolia for base deployment
```

## How to test
Expand Down
7 changes: 5 additions & 2 deletions op-gateway/wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
name = "base-sepolia-gateway-worker"
account_id = "15dcc9085cb794bb4f29d3e8177ac880"
main = "./src/worker.ts"
node_compat = true
Expand All @@ -10,4 +9,8 @@ port = 8080
[build]
command = "yarn build"

[vars]
[env.base-sepolia]
name = "base-sepolia-gateway-worker"

[env.op-sepolia]
name = "op-sepolia-gateway-worker"

0 comments on commit a13924b

Please sign in to comment.