Skip to content
Source
Sign inSign up
TanStack/schemas
Open History to see the last commit

wrangler.jsonc

34 lines1.2 KB

1{
2 "$schema": "../../node_modules/wrangler/config-schema.json",
3 // Default environment: anyone can clone this example and `bun run build &&
4 // wrangler deploy` it to their own account — it runs at the root of their
5 // workers.dev subdomain and reads from the live modelschemas API (override
6 // with MODELSCHEMAS_URL at build time).
7 "name": "image-dimensions-example",
8 "compatibility_date": "2025-09-02",
9 "compatibility_flags": ["nodejs_compat"],
10 "main": "src/worker.ts",
11 "workers_dev": true,
12 "observability": {
13 "enabled": true,
14 },
15 // The canonical deployment: built with CLOUDFLARE_ENV=modelschemas (which
16 // also switches the vite base to /examples/image-dimensions/), served on
17 // the main site via a zone route that takes precedence over the
18 // modelschemas.com custom domain for this path.
19 "env": {
20 "modelschemas": {
21 "name": "modelschemas-example-image-dimensions",
22 "workers_dev": false,
23 "observability": {
24 "enabled": true,
25 },
26 "routes": [
27 {
28 "pattern": "modelschemas.com/examples/image-dimensions/*",
29 "zone_name": "modelschemas.com",
30 },
31 ],
32 },
33 },