Skip to content

Commit

Permalink
fix(access-api): add logtail to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Aug 26, 2022
1 parent 2c121f4 commit 546152a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PRIVATE_KEY=MgCYWjE6vp0cn3amPan2xPO+f6EZ3I+KwuN1w2vx57vpJ9O0Bn4ci4jn8itwc121ujm7lDHkCW24LuKfZwIdmsifVysY=
POSTMARK_TOKEN=secret
SENTRY_DSN=https://000000@0000000.ingest.sentry.io/00000
#LOGTAIL_TOKEN=secret
LOGTAIL_TOKEN=secret

# CI secrets
SENTRY_TOKEN=secret
Expand Down
2 changes: 1 addition & 1 deletion packages/access-api/src/utils/context.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { SigningAuthority } from '@ucanto/authority'
import { config } from '../config.js'
import { Logging } from '@web3-storage/worker-utils/logging'
import Toucan from 'toucan-js'
import pkg from '../../package.json'
import { config } from '../config.js'

const sentryOptions = {
dsn: config.SENTRY_DSN,
Expand Down
1 change: 1 addition & 0 deletions packages/access-api/test/helpers/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const bindings = {
PRIVATE_KEY: process.env.PRIVATE_KEY || '',
POSTMARK_TOKEN: process.env.POSTMARK_TOKEN || '',
SENTRY_DSN: process.env.SENTRY_DSN || '',
LOGTAIL_TOKEN: process.env.LOGTAIL_TOKEN || '',
}

export const mf = new Miniflare({
Expand Down

0 comments on commit 546152a

Please sign in to comment.