Open
Description
Hey! I have two problems of integration FSD and NextJS. Follow the next docs: https://feature-sliced.design/docs/guides/tech/with-nextjs
I see two strategies from the docs:
- rename layer ( https://feature-sliced.design/docs/guides/tech/with-nextjs#renaming-the-pages-layer-within-the-fsd-structure ). I think It right way but steiger don't allow to rename layers (initial issue in steiger Possibility to rename layers steiger#111). Conflict docs and steiger
- move app folder out of src folder. It not working in our case, because we use page router and nextjs version >13.5, when nextjs automatically start use app router if you have app folder in the project. There are no problems when we use next <13.5, because you can turn off app-router from
next.config.js
(experimental.appDir = false
).
But anyway, if we didn't use it page router (and use app router), I think it's a bad way to move source code out of src folder by semantic. Also, nextjs in any major version can disallow app/page folder out of src and we will make it impossible to use nextjs and FSD together without renaming the layer.
Possible solution
Allow renaming layer in steiger + write a common doc about integration with framework and how to solve layer's naming conflict.
Metadata
Metadata
Assignees
Labels
No labels