Skip to content

Commit

Permalink
tell next.js that route is intentionally dynamic by adding this
Browse files Browse the repository at this point in the history
  • Loading branch information
kmiguel10 committed Oct 6, 2023
1 parent b42b4c0 commit 2a405f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/components/home/running.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { createServerComponentClient } from "@supabase/auth-helpers-nextjs";
import { cookies } from "next/headers";

export const dynamic = "force-dynamic";

export default async function Running() {
const supabase = createServerComponentClient({ cookies });
const { data: runs } = await supabase.from("running").select();
Expand Down

0 comments on commit 2a405f6

Please sign in to comment.