Refactor using the new Next.js 13 /app directory
gregrickaby opened this issue · 1 comments
gregrickaby commented
Instead of doing all the data fetching client side, it can be moved to server components, which makes this app the perfect candidate for the new /app
directory structure.
- Review https://beta.nextjs.org/docs and try moving to the new
/app
directory structure. - Because Mantine is based on emotion, using server components could be a challenge. Review https://github.com/mantinedev/mantine-next-template/tree/next-13-app for more info
gregrickaby commented
Wow. This is hard. Everything breaks for weird reasons. Turbopack doesn't work with the /api/
routes. Quoting the Next.js beta docs:
Warning: The app directory is in beta and some conventions could change before stability is reached. We do not recommend using the app directory in production.
For this reason, I'm going to wait until things are more stable.