Expand description
Where each context’s generated files go under a Workers build (#3562, G2b).
A context is one Worker, and its files go under workers/<dir>/, <dir>
being the dashed context name. A [deploy.workers.<key>] group puts several
contexts in one Worker, so they share one directory, workers/<key>/, and
each member’s own files carry a prefix (<member>.handlers.ts) so two
members never write the same file. The files that belong to the Worker as a
whole (index.ts, wrangler.toml) take no prefix.
WorkerLayout::identity is the layout of a project with no group: every
context in a directory of its own, every file under its usual name.
Structs§
- Worker
Layout - Where each context’s generated files go.