feat: add health check endpoint, fix task date filtering, and update Next.js type reference path

This commit is contained in:
poyrazavsever
2026-06-06 23:25:38 +03:00
parent 59b3897b44
commit 990c7a21b6
3 changed files with 9 additions and 2 deletions
@@ -43,7 +43,7 @@ export function AnalyticsClient({ data }: AnalyticsClientProps) {
};
const filteredFinances = data.finances.filter(f => filterByDate(f.transaction_date));
const filteredTasks = data.tasks.filter(t => filterByDate(t.created_at || t.due_at));
const filteredTasks = data.tasks.filter(t => filterByDate(t.created_at || t.due_at || null));
// Project-based income
const projectIncomeMap = new Map();
+7
View File
@@ -0,0 +1,7 @@
import { NextResponse } from "next/server";
export const runtime = "edge";
export function GET() {
return NextResponse.json({ status: "ok", timestamp: new Date().toISOString() });
}
+1 -1
View File
@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts";
import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.