I would like to have static routes in my application while saving ability to read them somewhere.
For example:
-/Pages
--index.js
--/Account
---Settings.js
---[AccountPages].js
Somewhere in my codebase:
import { useRouter } from 'next/router'
const {AccountPages} = router.query
Problem is that AccountPages
will return some value for any page but account/settings
Is it possible to read AccountPages
for route that was matched in to static page?