Skip to content
Discussion options

You must be logged in to vote

Yes, it works. Thank you @TkDodo
I changed the the app structure:
layout.js
-- (products)
---- layout.js
---- ...
-- (rest-routes)
---- layout.js
---- ...

But adding page.js didn't work (page.js in root has conflict with page.js under (rest-routes)):
layout.js
page.js ❌
-- (products)
---- /products
------ layout.js
------ page.js
---- layout.js
---- ...
-- (rest-routes)
---- layout.js
---- page.js ❌
---- ...

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hadikman
Comment options

@TkDodo
Comment options

@hadikman
Comment options

Answer selected by hadikman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants