Skip to content

Trim the standalone payload: Next output tracing pulls repo-root extras #124

Description

@cevheri

Follow-up from PR #122 (raised in the batch implementation and in two external reviews).

Next.js output file tracing pulls repo-root extras (docs/, charts/, e2e/, CLAUDE.md, bun.lock) into the standalone output, inflating every payload-derived artifact: the tarballs, the .deb/.rpm (~78 MB package, ~240 MB installed), the snap, and the npx cache.

Proposal:

  • Add outputFileTracingExcludes to next.config for the known non-runtime directories, and/or prune the payload in scripts/build-standalone-payload.sh (single source used by CI and local builds).
  • Target: roughly halve the payload; verify with the script's --smoke boot and the existing zero-env login flow.
  • Watch for under-exclusion regressions: better-sqlite3 bindings and @libredb/libredb must stay in.

Note: local (non-CI) builds also traced gitignored root files before; releases are unaffected because CI checkouts are clean, but pruning fixes local builds too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestloop:queuedTriaged by the maintainer loop: verified in code, sanitized spec recorded, queued

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions