Skip to content

Commit 75736ae

Browse files
committed
Oops
1 parent cea2758 commit 75736ae

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "labelzoom-cf-api-proxy",
33
"description": "A Cloudflare Worker that serves as a reverse proxy for LabelZoom's public REST API",
4-
"version": "1.1.1",
4+
"version": "1.1.2",
55
"private": true,
66
"dependencies": {
77
"hono": "4.7.7",

src/worker/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ app.notFound((c) => {
100100
return proxyToBackend({
101101
baseUrl: c.env.LZ_PROD_API_BASE_URL,
102102
headers: {
103-
'X-LZ-IP': c.req.header("Cf-Connecting-Ip") ?? c.req.header("X-Forwarded-For") ?? '',
103+
'X-LZ-IP': c.req.header("Cf-Connecting-Ip") || c.req.header("X-Forwarded-For") || '',
104104
'X-LZ-Secret-Key': c.env.LZ_PROD_API_SECRET_KEY,
105105
},
106106
})(c);

wrangler.jsonc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,6 @@
4646
"localConnectionString": "mysql://lz_hyperdrive:[email protected]:3306/lz_spring"
4747
}
4848
],
49-
"secrets_store_secrets": [
50-
{
51-
"binding": "LZ_PRIVATE_KEY",
52-
"store_id": "389643fca29849239d4465af799a0b28",
53-
"secret_name": "LZ_PRIVATE_KEY"
54-
},
55-
{
56-
"binding": "LZ_PUBLIC_KEY",
57-
"store_id": "389643fca29849239d4465af799a0b28",
58-
"secret_name": "LZ_PUBLIC_KEY"
59-
},
60-
],
6149

6250
/**
6351
* Environment Variables

0 commit comments

Comments
 (0)