Skip to content

Commit

Permalink
fix(config): staging kv bidding (#134)
Browse files Browse the repository at this point in the history
Accidentally placed the KV bindings for staging under the `vars` section
instead of the correct `env.staging` section.

Also fixed the missing env vars in `staging` environment, so we can
track egress using the new delegation KV store.
  • Loading branch information
fforbeck authored Dec 16, 2024
1 parent b199bfa commit 7a523d5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ route = { pattern = "https://freeway-staging.dag.haus/*", zone_id = "f2f8a5b1c55
r2_buckets = [
{ binding = "CARPARK", bucket_name = "carpark-staging-0" }
]
kv_namespaces = [
{ binding = "AUTH_TOKEN_METADATA", id = "b618bb05deb8493f944ef4a0f538030c" },
{ binding = "CONTENT_SERVE_DELEGATIONS_STORE", id = "99ae45f8b5b3478a9df09302c27e81a3" }
]

[env.staging.build]
command = "npm run build"
Expand All @@ -75,15 +79,14 @@ MAX_SHARDS = "825"
FF_RATE_LIMITER_ENABLED = "false"
FF_EGRESS_TRACKER_ENABLED = "true"
FF_TELEMETRY_ENABLED = "true"
FF_DELEGATIONS_STORAGE_ENABLED = "true"
GATEWAY_SERVICE_DID = "did:web:staging.w3s.link"
UPLOAD_SERVICE_DID = "did:web:staging.web3.storage"
CONTENT_CLAIMS_SERVICE_URL = "https://staging.claims.web3.storage"
UPLOAD_API_URL = "https://staging.up.web3.storage"
CARPARK_PUBLIC_BUCKET_URL = "https://carpark-staging-0.r2.w3s.link"
kv_namespaces = [
{ binding = "AUTH_TOKEN_METADATA", id = "b618bb05deb8493f944ef4a0f538030c" },
{ binding = "CONTENT_SERVE_DELEGATIONS_STORE", id = "99ae45f8b5b3478a9df09302c27e81a3" }
]
INDEXING_SERVICE_URL = "https://staging.indexer.storacha.network/"


# Test!
[env.test]
Expand Down

0 comments on commit 7a523d5

Please sign in to comment.