chore(web): investigate Turbopack NFT trace warning #538

Open
opened 2026-06-07 18:43:37 +00:00 by simon · 0 comments
Owner

Summary

During validation for the ITIL service graph layout change, BETTER_AUTH_URL=http://localhost:3000 DATABASE_URL=postgresql://ctops:ctops@localhost:5432/ctops pnpm --filter web build completed successfully but emitted a Turbopack warning from apps/web/next.config.ts.

Evidence

Turbopack reported: Encountered unexpected file in NFT list. The import trace points at apps/web/app/api/tools/bundle-transfer/route.ts, with apps/web/next.config.ts appearing in the trace.

Why it matters

The warning says the whole project may have been traced unintentionally because of filesystem operations or dynamic requires. That can make server output tracing larger or less predictable.

Suggested fix

Inspect the bundle-transfer route and any config imports it pulls in. Restrict filesystem path construction to static subfolders, move development-only filesystem reads behind environment guards, or add an appropriate Turbopack ignore annotation where the dynamic path is intentional.

## Summary During validation for the ITIL service graph layout change, `BETTER_AUTH_URL=http://localhost:3000 DATABASE_URL=postgresql://ctops:ctops@localhost:5432/ctops pnpm --filter web build` completed successfully but emitted a Turbopack warning from `apps/web/next.config.ts`. ## Evidence Turbopack reported: `Encountered unexpected file in NFT list`. The import trace points at `apps/web/app/api/tools/bundle-transfer/route.ts`, with `apps/web/next.config.ts` appearing in the trace. ## Why it matters The warning says the whole project may have been traced unintentionally because of filesystem operations or dynamic requires. That can make server output tracing larger or less predictable. ## Suggested fix Inspect the bundle-transfer route and any config imports it pulls in. Restrict filesystem path construction to static subfolders, move development-only filesystem reads behind environment guards, or add an appropriate Turbopack ignore annotation where the dynamic path is intentional.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carrtech/ct-ops#538
No description provided.