Adapters & targets
Patties currently supports two build targets — bun and edge — and the build system selects an adapter based on the configured target.
Supported targets
bunedge
The build system selects an adapter based on the configured target.
Adapter responsibilities
An adapter receives:
- the bundled server entry path
- copied assets
- app directory
- output directory
- build mode
- compile preference
It returns:
- the consumable server entry
- the asset list
- any extra emitted files
Bun target
The Bun adapter produces a Bun-consumable server entry. In production, it can also honor compile: true to emit a standalone binary via bun build --compile.
Edge target
The edge adapter emits an edge-friendly server artifact while keeping the rest of the build pipeline shared.