@@ -308,70 +308,76 @@ section.
308308---
309309filename: wrangler.toml
310310---
311- compatibility_date = " 2021-11-12" # # --compat-date
312- compatibility_flags = [ # # --compat-flag
311+ name = " worker" # --name
312+
313+ compatibility_date = " 2021-11-12" # --compat-date
314+ compatibility_flags = [ # --compat-flag
313315 " formdata_parser_supports_files"
314316]
315317
316- kv_namespaces = [ # # --kv
318+ kv_namespaces = [ # --kv
317319 { binding = " TEST_NAMESPACE" , id = " " , preview_id = " " }
318320]
319321
320322[durable_objects ]
321- bindings = [ # # --do
323+ bindings = [ # --do
322324 { name = " OBJECT" , class_name = " Object" }
323325]
324326
325- [vars ] # # --binding
327+ [vars ] # --binding
326328KEY = " value"
327329
328330[site ]
329- bucket = " ./public" # # --site
330- include = [" upload_dir" ] # # --site-include
331- exclude = [" ignore_dir" ] # # --site-exclude
331+ bucket = " ./public" # --site
332+ include = [" upload_dir" ] # --site-include
333+ exclude = [" ignore_dir" ] # --site-exclude
332334
333335[triggers ]
334- crons = [" 30 * * * *" ] # # --cron
336+ crons = [" 30 * * * *" ] # --cron
335337
336338[build ]
337- command = " npm run build" # # --build-command
338- cwd = " build_cwd" # # --build-base-path
339- watch_dir = " build_watch_dir" # # --build-watch-path
339+ command = " npm run build" # --build-command
340+ cwd = " build_cwd" # --build-base-path
341+ watch_dir = " build_watch_dir" # --build-watch-path
340342[build .upload ]
341- format = " modules" # # --modules
343+ format = " modules" # --modules
342344dir = " worker"
343- main = " ./index.mjs" # # [script]
344- [[build .upload .rules ]] # # --modules-rule
345+ main = " ./index.mjs" # [script]
346+ [[build .upload .rules ]] # --modules-rule
345347type = " ESModule"
346348globs = [" **/*.js" ]
347349
348- [wasm_modules ] # # --wasm
350+ [wasm_modules ] # --wasm
349351MODULE = " module.wasm"
350352
351353[miniflare ]
352- host = " 127.0.0.1" # # --host
353- port = 1337 # # --port
354- upstream = " https://miniflare.dev" # # --upstream
355- watch = true # # --watch
356- live_reload = true # # --live-reload
357- env_path = " .env.test" # # --env
358- kv_persist = true # # --kv-persist
359- cache_persist = " ./cache" # # --cache-persist
360- cache = false # # --no-cache
361- durable_objects_persist = true # # --do-persist
362- update_check = false # # --no-update-check
363- cf_fetch = " ./cf.json" # # --cf-fetch ./cf.json
364- cf_fetch = false # # --no-cf-fetch
365- https = true # # --https
366- https = " ./cert_cache" # # --https ./cert_cache
354+ host = " 127.0.0.1" # --host
355+ port = 1337 # --port
356+ upstream = " https://miniflare.dev" # --upstream
357+ watch = true # --watch
358+ live_reload = true # --live-reload
359+ env_path = " .env.test" # --env
360+ kv_persist = true # --kv-persist
361+ cache_persist = " ./cache" # --cache-persist
362+ cache = false # --no-cache
363+ durable_objects_persist = true # --do-persist
364+ update_check = false # --no-update-check
365+ cf_fetch = " ./cf.json" # --cf-fetch ./cf.json
366+ cf_fetch = false # --no-cf-fetch
367+ https = true # --https
368+ https = " ./cert_cache" # --https ./cert_cache
369+ global_async_io = true # --global-async-io
370+ global_timers = true # --global-timers
371+ global_random = true # --global-random
372+ proxy_primitive_instanceof = true # --proxy-primitive
367373[miniflare .https ]
368- key = " ./key.pem" # # --https-key
369- cert = " ./cert.pem" # # --https-cert
370- ca = " ./ca.pem" # # --https-ca
371- pfx = " ./pfx.pfx" # # --https-pfx
372- passphrase = " pfx passphrase" # # --https-passphrase
373- [miniflare .globals ] # # --global
374+ key = " ./key.pem" # --https-key
375+ cert = " ./cert.pem" # --https-cert
376+ ca = " ./ca.pem" # --https-ca
377+ pfx = " ./pfx.pfx" # --https-pfx
378+ passphrase = " pfx passphrase" # --https-passphrase
379+ [miniflare .globals ] # --global
374380KEY = " value"
375- [miniflare .mounts ] # # --mount
381+ [miniflare .mounts ] # --mount
376382api = " ./api"
377383```
0 commit comments