Documentation Index
Fetch the complete documentation index at: https://mintlify.com/withastro/flue/llms.txt
Use this file to discover all available pages before exploring further.
flue build compiles your project into a deployable artifact. It does not start a server or invoke any agent — it only produces the build output. Use it when you want to produce a release artifact for deployment, separate from any invocation.
Usage
Flags
Build target. Accepted values:
node or cloudflare. Required if not set in flue.config.*.Project root directory. Source files (
agents/, roles/) live at <root>/.flue/ if that directory exists, otherwise at <root>/ directly. Defaults to the current working directory.Where build artifacts are written. Defaults to
<root>/dist.Explicit path to a
flue.config.{ts,mts,mjs,js,cjs,cts} file (relative to cwd). Defaults to auto-discovery from the root directory. CLI flags always override values set in the config file.Build outputs
Node target
Produces a single bundled ESM file atdist/server.mjs. All Flue infrastructure is inlined; your project’s direct dependencies are externalized and resolved at runtime from node_modules.
Cloudflare target
Produces an unbundled TypeScript entry that Wrangler bundles at deploy time. This matches the same path thatflue dev --target cloudflare uses, so what works in development will work in production.
nodejs_compat compatibility flags into your wrangler.jsonc. Deploy with: