Update wrangler.toml.example (#602)

fix syntax
This commit is contained in:
Naïm K
2025-10-27 07:26:21 +01:00
committed by GitHub
parent 56643527ec
commit ed0889f449

View File

@@ -3,11 +3,16 @@ main = "src/index.ts"
compatibility_date = "2024-09-02" compatibility_date = "2024-09-02"
minify = false minify = false
r2_buckets = [ # R2 bucket bindings; adjust names for dev vs prod buckets.
{ binding = "BUCKET", preview_bucket_name = "my-bucket-development", bucket_name = "my-bucket-production" } [[r2_buckets]]
] # Alias used in the worker (env.BUCKET)
binding = "BUCKET"
# Bucket used when running `wrangler dev`
preview_bucket_name = "my-bucket-development-name"
# Bucket used on `wrangler deploy`
bucket_name = "my-bucket-production-name"
[vars] [vars]
# change to https://example.com, etc. to limit CORS origins # change to https://example.com, etc. to limit CORS origins
ALLOWED_ORIGINS = "*" ALLOWED_ORIGINS = "*"
# CACHE_CONTROL = "public, max-age=86400" # CACHE_CONTROL = "public, max-age=86400"