DEV Community

Cover image for How to deal with NextJS App Router and FSD problem

How to deal with NextJS App Router and FSD problem

Yan Levin on December 21, 2023

Introduction For those who have never worked with Feature-Sliced Design, aka FSD, I recommend reading my article about FSD first. ...
Collapse
 
rishamason profile image
Risha

Well done! Thank you

Collapse
 
chris_seckler_128a6318ffe profile image
Chris Seckler

When you say "import the FSD pages into the NextJS app folder", what exactly do you mean? Can you provide a code sample? Just something like this?

app/index.ts

export HomePage from '../src/pages/home/index'
Enter fullscreen mode Exit fullscreen mode