Skip to content

Commit fdf3235

Browse files
committed
Adding global environment
1 parent 889e343 commit fdf3235

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
name: Deploy to PROD
5757
strategy:
5858
matrix:
59-
environment: ['public', 'eus1', 'eus2']
59+
environment: ['public', 'eus1', 'eus2', 'global']
6060
environment: ${{ matrix.environment }}
6161
permissions:
6262
contents: read

wrangler.jsonc

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,50 @@
235235
"secret_name": "LZ_PUBLIC_KEY"
236236
},
237237
],
238-
}
238+
},
239+
"global": {
240+
"vars": {
241+
"LZ_ALLOWED_ORIGINS": [
242+
"https://labelzoom.net",
243+
"https://www.labelzoom.net",
244+
"https://beta.labelzoom.net",
245+
"https://gatsby.labelzoom.net",
246+
],
247+
"LZ_LOG_SAMPLE_RATE": 0,
248+
"LZ_ERROR_SAMPLE_RATE": 0,
249+
"LZ_PROD_API_BASE_URL": "https://prod-api.label-zoom.com",
250+
"ENVIRONMENT": "production",
251+
"S3_BUCKET": "https://labelzoom-packages.s3.us-east-2.amazonaws.com",
252+
},
253+
"limits": {
254+
"cpu_ms": 100
255+
},
256+
"r2_buckets": [
257+
{
258+
"binding": "LZ_R2_BUCKET",
259+
"bucket_name": "labelzoom-conversions-prod-global"
260+
}
261+
],
262+
"hyperdrive": [
263+
{
264+
"binding": "DB",
265+
"id": "a40ee45a6e1249d19caf72f7f6d40a92",
266+
"localConnectionString": "mysql://lz_hyperdrive:Uid4lDiH5pltxYBFFNqe@ubuntu-database.internal.robfaust.com:3306/lz_spring"
267+
}
268+
],
269+
"secrets_store_secrets": [
270+
{
271+
"binding": "LZ_PRIVATE_KEY",
272+
"store_id": "389643fca29849239d4465af799a0b28",
273+
"secret_name": "LZ_PRIVATE_KEY"
274+
},
275+
{
276+
"binding": "LZ_PUBLIC_KEY",
277+
"store_id": "389643fca29849239d4465af799a0b28",
278+
"secret_name": "LZ_PUBLIC_KEY"
279+
},
280+
],
281+
},
239282
},
240283
/**
241284
* Note: Use secrets to store sensitive data.

0 commit comments

Comments
 (0)