Skip to content

Commit

Permalink
fix: set production wrangler vars
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Oli Evans <oli@protocol.ai>
  • Loading branch information
olizilla committed Jul 25, 2023
1 parent 0bca876 commit 2684e54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default {
streams: events.map(toLoki)
}
if (env.DEBUG === 'true') {
// NOTE: it was not possible to see logs from the tail worker at time of writing... seems like a bug.
console.log('POST', env.LOKI_URL, JSON.stringify(lokiBody))
}
const res = await fetch(env.LOKI_URL, {
Expand Down
3 changes: 2 additions & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ ENV = "staging"
DEBUG = "true"

# PROD!
[env.productuion]
[env.production]
account_id = "fffa4b4363a7e5250af8357087263b3a"

[env.production.vars]
ENV = "production"
DEBUG = "false"

0 comments on commit 2684e54

Please sign in to comment.