Skip to content

Commit

Permalink
fix: edge function timeout test
Browse files Browse the repository at this point in the history
  • Loading branch information
v1s10n-4 committed Sep 14, 2024
1 parent 4630db9 commit 30ee7a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/account/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 2 additions & 0 deletions app/map/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import React, { FC, PropsWithChildren } from "react";

export const runtime = "edge";
const MapLayout: FC<PropsWithChildren> = async ({ children }) => {
console.time("MapLayout");
const invaders = await getInvadersWithLocation();
console.timeEnd("MapLayout");
return (
<>
<Map invaders={invaders} />
Expand Down

0 comments on commit 30ee7a6

Please sign in to comment.