rsnext/test/integration/basic/pages/nested-index/index/index.js
Jan Potoms 5f70c23465 Fix for index.js pages inside a folder named 'index' (#6423)
* Add failing test

Test case for
https://github.com/zeit/next.js/issues/6285
and
https://github.com/zeit/next.js/issues/6380

* WIP

* refactor and fix test

* not problem

* refactor back

* rename variables

like https://github.com/zeit/next.js/blob/canary/packages/next/server/on-demand-entry-handler.js#L163

* Update usage and add comment
2019-02-26 15:57:45 +01:00

5 lines
126 B
JavaScript

export default () => (
<div className='nested-index'>
<p>This is an index.js nested in an index/ folder.</p>
</div>
)