chore: src/ yapısı, shadcn/ui ve temel bağımlılıklar
- 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>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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" } },
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user