tatethurston / nextjs-routes

Type safe routing for Next.js
MIT License
578 stars 21 forks source link

parallel and Intercepting Routes Support #194

Closed mrhut10 closed 2 months ago

mrhut10 commented 2 months ago

Currently utilizing plenty of parallel and intercepting routes,

I believe they end up getting typed in using this package wrong.

where we see routes like /app/blog/@modals/(.)/delete

I suspect we need to ignore the @ segments, when building routes, then pop segments off based on the convention in nextjs documentation

I'm happy to contribute towards this, but might be good to confirm that I'm correct in my assumption/believe what needs doing.

tatethurston commented 2 months ago

Thanks for reporting this and opening a PR. I've published this in nextjs-routes@2.2.2-rc.3 -- LMK if you encounter any issues!

mrhut10 commented 2 months ago

cheers @tatethurston I'll pull that version down hopefully later in the week and let you know. cheers