Skip to content

Commit

Permalink
fix: add analytics to staging and prod
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Aug 30, 2022
1 parent d276375 commit 14941d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions packages/access-api/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ id = "b0e5ca990dda4e3784a1741dfa28a52e"
binding = "VALIDATIONS"
id = "b13f07c88fe848db9ccf651a0fea3fb6"

[[env.staging.unsafe.bindings]]
type = "analytics_engine"
dataset = "W3ACCESS_METRICS"
name = "W3ACCESS_METRICS"


# Production
[env.production]
Expand All @@ -94,3 +99,8 @@ id = "5437954e8cfd4f7d98557132b0a2e93f"
[[env.production.kv_namespaces]]
binding = "VALIDATIONS"
id = "fb7cf10c725f45948321e88b8cb168ad"

[[env.production.unsafe.bindings]]
type = "analytics_engine"
dataset = "W3ACCESS_METRICS"
name = "W3ACCESS_METRICS"
4 changes: 2 additions & 2 deletions packages/access/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const config = new Conf({
})

const prog = sade(NAME)
const url = process.env.URL || 'https://w3access-dev.protocol-labs.workers.dev'
const url = process.env.URL || 'https://access-api-staging.web3.storage'
const did = DID.parse(
// @ts-ignore - https://github.com/ipld/js-dag-ucan/issues/49
process.env.DID || 'did:key:z6MksafxoiEHyRF6RsorjrLrEyFQPFDdN6psxtAfEsRcvDqx'
process.env.DID || 'did:key:z6MknemWKfRSfnprfijbQ2mn67KrnV44SWSuct3WLDanX2Ji'
)

prog.version(pkg.version)
Expand Down

0 comments on commit 14941d9

Please sign in to comment.