willianjusten/nba-nextjs

Fix API caches/revalidations and organization

Closed this issue · 0 comments

As of now I just created route handlers under /api folder, but we might want to reorganize this to be cleaner, try to reuse some logic that's pretty much the same as well.

Another thing that I noticed, is that NextJS is heavily caching those routes, which is quite annoying mainly to the Real Time route (/api/today), so we might want to check a way to let NextJS knows that we don't want to cache this route ever.