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

wrangler.jsonc

33 lines1.0 KB

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