gregrickaby/viewer-for-reddit

Refactor using the new Next.js 13 /app directory

gregrickaby opened this issue · 1 comments

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.

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.