-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathwrangler.toml
More file actions
24 lines (21 loc) · 944 Bytes
/
Copy pathwrangler.toml
File metadata and controls
24 lines (21 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name = "image-resizing"
workers_dev = false
compatibility_date = "2026-06-17"
compatibility_flags = ["nodejs_compat"]
main = "./src/index.ts"
[observability]
head_sampling_rate = 1
# ---------------------------------------------------------------------------
# Environment variables
# Configure these before deploying, either here or via the Workers dashboard.
# ---------------------------------------------------------------------------
[vars]
# Comma-separated list of hostnames permitted as image origins.
# Requests from any other absolute URL origin will be passed through unresized.
# Example: "www.yourblog.com,cdn.yourblog.com"
# Leave empty ("") to allow all origins (not recommended for production).
ALLOWED_ORIGINS = ""
# Optional custom header to append to resizer fetch requests.
# Format: "header-name,header-value" — both parts must be non-empty to take effect.
# Example: "x-resize-token,mysecrettoken"
CUSTOM_HEADER = ""