Update dependencies, enhance AI integration, and improve email content
Some checks failed
Deploy / deploy (push) Failing after 1h35m43s
Some checks failed
Deploy / deploy (push) Failing after 1h35m43s
- Added @google/genai dependency for enhanced AI capabilities. - Updated CI workflow to include new environment variables for AI integration. - Refactored AI client to support multiple providers and improved key management. - Enhanced email templates for better user engagement and clarity. - Updated error handling in AI-related functions to provide clearer feedback. - Made various improvements to the application structure and code clarity.
This commit is contained in:
@@ -69,6 +69,11 @@ export async function olusturulanListeSayisi(): Promise<number> {
|
||||
export async function anlikZiyaretci(): Promise<number | null> {
|
||||
if (!HOST || !API_KEY || !STATS_SITE_ID) return null;
|
||||
|
||||
// `Date.now()`den önce şart: prerender sırasında saat okumak yasak, istek
|
||||
// anına bağlanmamız gerekiyor. Kardeş fonksiyondaki `connection()` bunu
|
||||
// karşılamıyor — ikisi `Promise.all` ile paralel koşuyor.
|
||||
await connection();
|
||||
|
||||
const onceki = bellek.canli;
|
||||
if (onceki && Date.now() - onceki.zaman < CANLI_TTL_MS) return onceki.deger;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user