Skip to content

fix: the image leaves out the app's sources and tests - #44

Merged
kroqdotdev merged 1 commit into
mainfrom
image-no-sources
Oct 4, 2026
Merged

kroqdotdev merged 1 commit into
mainfrom
image-no-sources

Conversation

@kroqdotdev

Copy link
Copy Markdown
Owner

Next's file tracer copied every file under src/ into .next/standalone (92 files: 34 tests, the rest sources), from the config paths it cannot resolve at build time. The server runs its compiled bundles and reads nothing under src/ (config, assets and incidents are read beside CONFIG_PATH), so outputFileTracingExcludes now leaves out src/** instead of only src/lib/kuma/**. The Dockerfile still copies the importer's .mts files on its own.

Checked:

  • .next/standalone holds server.js, package.json, .next and node_modules only.
  • The 24 journeys pass; they run node .next/standalone/server.js.
  • A local docker build: no test files in /app, import-kuma reads the Kuma 2.5 fixture, and the server answers /status.json with 200 from a config in /data.
  • Lint, format, typecheck and 509 unit tests pass.

🤖 Generated with Claude Code

Next's tracer copied every file under src into .next/standalone, 92 of
them with 34 tests and the importer's fixtures, because of the config
paths it cannot resolve at build time. The server runs its compiled
bundles and reads nothing under src, so src is excluded from tracing.
The Dockerfile still copies the importer's sources for import-kuma.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 4, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7c28bc4b-9012-4a44-8ddc-e34020997a49
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kroqdotdev
kroqdotdev merged commit 56aa2e2 into main Oct 4, 2026
4 checks passed
@kroqdotdev
kroqdotdev deleted the image-no-sources branch October 4, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant