7f69f4019d
- app/ klasörü src/app altına taşındı, @/* alias'ı src/'yi gösteriyor - tsconfig: noUncheckedIndexedAccess - shadcn/ui (Radix, Nova) başlatıldı - Better Auth, MongoDB 7.7, Mongoose 9, zod 4, react-hook-form, next-themes, sonner, TanStack Table - next.config: standalone çıktı, poweredByHeader kapalı - Geçici /api/health, i18n/tr.ts, Türkçe layout - Prompt docs/PROMPT.md olarak taşındı ve Faz 0 kararları işlendi Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
570 B
TypeScript
21 lines
570 B
TypeScript
import { connection } from "next/server";
|
||
import { APP_COMMIT, APP_VERSION } from "@/lib/version";
|
||
|
||
/**
|
||
* Sağlık kontrolü (Dokploy / Docker HEALTHCHECK).
|
||
* Faz 3'te veritabanı ping'i eklenecek; DB erişilemezse 503 dönecek.
|
||
*/
|
||
export async function GET() {
|
||
// Cache Components açıkken GET handler'ı build'de prerender edilmesin.
|
||
await connection();
|
||
return Response.json(
|
||
{
|
||
status: "ok",
|
||
version: APP_VERSION,
|
||
commit: APP_COMMIT,
|
||
time: new Date().toISOString(),
|
||
},
|
||
{ headers: { "Cache-Control": "no-store" } },
|
||
);
|
||
}
|