How to use index.js instead of page.js?
Answered
Daggertooth pike conger posted this in #help-forum
Daggertooth pike congerOP
How can I configure Next to load index.js files instead of page.js files?
As I'm trying to upgrade an existing project, I would prefer a solution that doesn't require me to change many files. (The project heavily relies on index.js files being routed to their containing directory.)
I'm also wondering why the default file name was changed from 'index.js' in the first place.
As I'm trying to upgrade an existing project, I would prefer a solution that doesn't require me to change many files. (The project heavily relies on index.js files being routed to their containing directory.)
I'm also wondering why the default file name was changed from 'index.js' in the first place.