Reference
buildApp
Builds an app-router project into server, client, and optional deployment-target artifacts. Use this from custom build scripts when the CLI is too coarse-grained; the returned manifest paths describe the files written under `outDir`. The build reads route files, loaders, middleware, metadata, server actions, and client references, so callers should pass the same project root and source allow-list they expect to deploy.
Signature
function buildApp(options: BuildAppOptions): Promise<BuildAppResult>