Update package.json scripts, enhance layout with new components, and improve API error handling
Some checks failed
Deploy / deploy (push) Failing after 1h28m6s
Some checks failed
Deploy / deploy (push) Failing after 1h28m6s
- Added new scripts for database operations and temporary production in package.json. - Integrated KaydetBannerLazy component into the layout for improved user notifications. - Enhanced API error handling in the soru route to mark credit exhaustion. - Updated the IletisimPage for better button styling and user experience. - Refactored ListemPage to streamline user flow and improve session handling. - Removed unused ListePaneli component to clean up the codebase.
This commit is contained in:
15
src/instrumentation.ts
Normal file
15
src/instrumentation.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Sunucu açılışında bir kez çalışır (Next instrumentation konvansiyonu).
|
||||
* Kredi-bitti hatırlatma taramasını başlatır — tek, sürekli çalışan
|
||||
* container'da harici cron yerine in-process zamanlayıcı yeterli.
|
||||
*/
|
||||
export async function register() {
|
||||
if (process.env.NEXT_RUNTIME !== "nodejs") return;
|
||||
if (process.env.NEXT_PHASE === "phase-production-build") return;
|
||||
// Migration akışı olmadığından sonradan eklenen tablolar açılışta güvenceye
|
||||
// alınır (additive DDL, idempotent) — mevcut prod volume'ü seed'den kopyalanmaz.
|
||||
const { semayiGuvenceyeAl } = await import("./lib/appdb/sema-guvence");
|
||||
await semayiGuvenceyeAl();
|
||||
const { krediHatirlatmaBaslat } = await import("./lib/kredi-hatirlatma");
|
||||
krediHatirlatmaBaslat();
|
||||
}
|
||||
Reference in New Issue
Block a user