From 30ee7a67e30802e859d8efb8dd203a2ffd6d6378 Mon Sep 17 00:00:00 2001 From: v1s10n_4 Date: Sun, 15 Sep 2024 01:49:21 +0200 Subject: [PATCH] fix: edge function timeout test --- app/account/page.tsx | 2 ++ app/map/layout.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/account/page.tsx b/app/account/page.tsx index a29148b..d762bdf 100644 --- a/app/account/page.tsx +++ b/app/account/page.tsx @@ -33,7 +33,9 @@ import React, { FC, Suspense } from "react"; export const runtime = "edge"; const AccountPage: FC = async () => { + console.time("auth call on /account/page"); const session = await auth(); + console.timeEnd("auth call on /account/page"); if (!session?.user) return await signIn(); const user = session.user; diff --git a/app/map/layout.tsx b/app/map/layout.tsx index 344d6a9..8bb60ad 100644 --- a/app/map/layout.tsx +++ b/app/map/layout.tsx @@ -5,7 +5,9 @@ import React, { FC, PropsWithChildren } from "react"; export const runtime = "edge"; const MapLayout: FC = async ({ children }) => { + console.time("MapLayout"); const invaders = await getInvadersWithLocation(); + console.timeEnd("MapLayout"); return ( <>