Call this script in your Expo Router project via:
npx expo-router-sitemap
Inspired by this X post by @kadikraman, I figured it would be useful to come up with a script that could check an Expo Router project.
/
/[...missing]
/community
/log-in
/podcasts/
/podcasts/[id]
/podcasts/latest
/profile
/showroom
✅ No route collisions detected.
/
- src/app/(app)/(tabs)/index.tsx
- src/app/(app)/index.tsx
/[...missing]
/community
/log-in
/podcasts/
/podcasts/[id]
/podcasts/latest
/profile
/showroom
❌ Collisions detected!
To install dependencies:
bun install
To run:
bun run index.ts
This project was created using bun init
in bun v1.1.27. Bun is a fast all-in-one JavaScript runtime.