You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
noveogroup-amorgunov
changed the title
Work with NextJS>13.5 and page router
Dont work with NextJS>13.5 and page router
Oct 23, 2024
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:
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.
The text was updated successfully, but these errors were encountered: