feat: add health check endpoint, fix task date filtering, and update Next.js type reference path
This commit is contained in:
@@ -43,7 +43,7 @@ export function AnalyticsClient({ data }: AnalyticsClientProps) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const filteredFinances = data.finances.filter(f => filterByDate(f.transaction_date));
|
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
|
// Project-based income
|
||||||
const projectIncomeMap = new Map();
|
const projectIncomeMap = new Map();
|
||||||
|
|||||||
@@ -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() });
|
||||||
|
}
|
||||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/// <reference types="next" />
|
/// <reference types="next" />
|
||||||
/// <reference types="next/image-types/global" />
|
/// <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
|
// NOTE: This file should not be edited
|
||||||
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||||
|
|||||||
Reference in New Issue
Block a user