P粉3928610472023-08-26 10:48:58
According to NextJs documentation, you can use both /app and /pages folders.
However, /app is an updated version of the /pages folder, which is the default folder in Next JS 13. In their documentation they describe the following:
This leads us to understand that at this time the /pages folder is supported as a way to migrate to the new /app folder. Additionally, they mentioned:
I guess technically you can use both at the same time, but I don't think you should.
You can visit this page for more information: Routing Fundamentals