mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 01:35:39 -04:00
Without TMDB_API_KEY the app silently fails on search and import. This adds a /setup page that guides admins through obtaining and configuring the key, redirects unconfigured visitors from the landing page, and returns clear error messages from the search API. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
9 lines
201 B
TypeScript
9 lines
201 B
TypeScript
import { NextResponse } from "next/server";
|
|
import { isTmdbConfigured } from "@/lib/config";
|
|
|
|
export async function GET() {
|
|
return NextResponse.json({
|
|
tmdbConfigured: isTmdbConfigured(),
|
|
});
|
|
}
|