title: How to dynamically create subpages/subroutes in NextJS?
body: <p>I want to create subpages dynamically like</p>
  <pre><code>example.com/test/index1
  example.com/test/index2
  example.com/test/index3
  example.com/test/index4
  .......
  </code></pre>
  <p>or something like this</p>
  <pre><code>example.com/test/[index1]
  example.com/test/[index2]
  example.com/test/[index3]
  </code></pre>
  <p>The subpages should be created based on the number of indexes. in the base/parent page</p>
  <p>I am totally unable to figure out a way to handle something like this
  Help would be much appreciated</p>