Supported targets

  • bun
  • edge

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.

Patties documentation · Licensed under MIT. · Design specs