ethanniser / next-typesafe-url

Fully typesafe, JSON serializable, and zod validated URL search params, dynamic route params, and routing for NextJS.
https://next-typesafe-url.dev
MIT License
362 stars 16 forks source link

Add support for routeType.tsx ? #101

Closed bring-shrubbery closed 2 months ago

bring-shrubbery commented 2 months ago

I've just spend a full day trying to debug why the dynamic route is not being generated. Restructured my whole localisation setup, since I thought that was the problem.

Turns out I've named my routeType.tsx instead of routeType.ts.

Proposed solution

Maybe CLI should also include .tsx files? Would save a lot of time for someone other than me 😆

ethanniser commented 2 months ago

Happy to accept a pr