nerandClaude Opus 5 01792a9669 perf(cache): edge-cache tmdb proxy, call tmdb directly on server, enable ISR
Three exceeded Vercel free tier limits (edge requests, function invocations,
fast origin transfer) all traced back to nothing being cached.

- Http defaults preventCache to false and the tmdb proxy now sends a real
  Cache-Control, so public responses are edge cached instead of missing on
  every request. Session scoped calls keep private, no-store.
- On the server movieAdvisor talks to tmdb directly. It used to fetch its own
  public /api/tmdb url, billing a second edge request, a second function
  invocation and the whole payload as origin transfer per server render.
- Add generateStaticParams to movie, tv and person pages. Without it Next
  treats the segment as fully dynamic and ignores revalidate, so the pages
  re-rendered on every request instead of using ISR.
- Trim credits and person payloads in the proxy: credits 72kb to 13kb,
  aggregate_credits 308kb to 102kb, person 191kb to 124kb. Only fields no
  mapper reads are dropped, mapped output is unchanged.
- Detail pages are cached now, so only a real tmdb 404 becomes notFound and
  other failures bubble up instead of being baked in as a 404 for a day.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-14 10:41:09 +03:00
2024-10-28 17:20:05 +02:00
2025-08-23 21:44:57 +03:00
2024-11-04 13:58:51 +02:00
2025-08-17 18:31:42 +03:00
2024-11-07 17:27:20 +02:00
2024-10-28 17:20:05 +02:00
2024-10-28 17:20:05 +02:00
2023-08-05 12:28:04 +03:00
2023-08-05 12:28:04 +03:00
2024-11-07 12:56:43 +02:00
2024-10-05 17:46:29 +03:00

This is Movie advisor, project which can help you find movie for your lonely evening.

Powered by NextJS, TMDB.

S
Description
Watch Next — self-hosted movie & TV discovery and watch app: TMDB-powered discovery, multi-provider torrents (YTS/TPB/Galaxy/Toloka/0day), instant magnet streaming, subtitles. Live at watchnext.online
https://watchnext.online
Readme
3.7 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 94%
JavaScript 3.8%
CSS 1.7%
Dockerfile 0.5%