@startuml
skinparam backgroundColor #FAFBFF
skinparam componentStyle rectangle
skinparam packageStyle rectangle
skinparam shadowing false
skinparam ArrowColor #0F172A
skinparam DefaultFontName Inter
skinparam DefaultFontSize 12

component "Vercel Next build worker" as Worker #E2E8F0
component "apps/demo/tsconfig.json\nignoreDeprecations=\"5.0\"" as TsConfig #FEE2E2
component "apps/demo/next.config.js\nturbopack.root=/apps/demo" as NextCfg #FDE68A
component "Output file tracing root\n/vercel/path0" as TraceRoot #DBEAFE
component "Build result" as Result #E5E7EB

Worker --> TsConfig
Worker --> NextCfg
TraceRoot --> Worker
NextCfg --> Result : warning (root mismatch)
TsConfig --> Result : TS parser rejects flag value in worker

note right of Result
  Failure mode:
  - Type error: Invalid value for '--ignoreDeprecations'
  - Warning: outputFileTracingRoot vs turbopack.root mismatch
end note
@enduml
