gvergnaud / nextjs-dynamic-routes

[Deprecated] Super simple way to create dynamic routes with Next.js
MIT License
140 stars 7 forks source link

Route doesn't work when page is index #21

Closed ntgussoni closed 4 years ago

ntgussoni commented 5 years ago

Hi! I've faced this issue a couple of times,

.add({ name: "admin_index", pattern: "/admin", page: "/admin/index" })

That page doesn't work since it points to an index file. Changing the file name to a different thing solves the issue

gvergnaud commented 5 years ago

Thanks for reporting, I'll have a look

ntgussoni commented 5 years ago

@gvergnaud I tried replicating this in the example app in this repo and I couldn't. Im gonna try to find what the difference is in my app