Skip to content

Commit e587dc1

Browse files
committed
Updating wrangler to include tail worker
1 parent 592978b commit e587dc1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
[![Build Status](https://github.com/labelzoom/labelzoom-cf-api-proxy/actions/workflows/deploy.yml/badge.svg?branch=main)](https://github.com/labelzoom/labelzoom-cf-api-proxy/actions?query=branch%3Amain)
66

77
Cloudflare Worker that serves as a reverse proxy for LabelZoom's public REST API
8-

wrangler.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name = "labelzoom-cf-api-proxy"
33
main = "src/index.ts"
44
compatibility_date = "2024-08-06"
55
compatibility_flags = ["nodejs_compat"]
6-
tail_consumers = [{service = "labelzoom-cf-api-proxy-tail"}]
6+
tail_consumers = [
7+
{ service = "labelzoom-cf-api-proxy-tail", environment = "production" }
8+
]
79

810
[limits]
911
cpu_ms = 100
@@ -21,7 +23,7 @@ cpu_ms = 100
2123
# Note: Use secrets to store sensitive data.
2224
# - https://developers.cloudflare.com/workers/configuration/secrets/
2325
[vars]
24-
LZ_LOG_SAMPLE_RATE = 0.0
26+
LZ_LOG_SAMPLE_RATE = 1.0
2527
LZ_PROD_API_BASE_URL = "https://api-backend.labelzoom.net"
2628
# LZ_PROD_API_SECRET_KEY = <SECRET>
2729

0 commit comments

Comments
 (0)