pub struct RouteCollision {
pub path: PathBuf,
pub url: String,
pub conflicting_paths: Vec<PathBuf>,
pub line: u32,
pub col: u32,
}Expand description
Two or more Next.js App Router route files that resolve to the SAME URL
within one app-root. Next.js fails the build (“You cannot have two parallel
pages that resolve to the same path”); fallow catches it statically and
names every colliding file at once. One finding is emitted per colliding
file; conflicting_paths lists the sibling files that share the URL.
Fields§
§path: PathBufThis colliding route file (a page or route leaf).
url: StringThe URL pathname this file resolves to within its app-root, after
stripping route groups (x) and parallel-slot @slot prefixes (e.g.
/about, /api/health, /blog/:slug).
conflicting_paths: Vec<PathBuf>The other route files that resolve to the same URL within the same app-root. Path-sorted for stable output / fingerprints.
line: u321-based line number (file-level finding, always 1).
col: u320-based byte column offset (file-level finding, always 0).