feat: add analytics dashboard and registration page with updated Next.js routing configuration
Some checks failed
Build and Push App / build (push) Failing after 22m29s

This commit is contained in:
2026-04-22 23:07:45 +02:00
parent 2e7cb65a29
commit 0460a1586f
5 changed files with 46 additions and 2 deletions

View File

@@ -136,6 +136,7 @@ async function getMetrics(range: string = 'week', from?: string, to?: string) {
const recentIPs = await Promise.all(
recentUniqueIPs.map(async (item) => {
if (!item.ip || !item._max.createdAt) return null;
return await prisma.analyticsEvent.findFirst({
where: {
ip: item.ip,