fridays / next-routes

Universal dynamic routes for Next.js
MIT License
2.47k stars 230 forks source link

Ability to use imported component instead of path #137

Closed abeaclark closed 1 year ago

abeaclark commented 6 years ago

I have an app that renders similar UI for pages at the root and pages under /internal/. Currently, I have to created a file for each page that simply references the underlying component I want to render.

It would be great to be able to simply put a component in the add function instead of a path.