Skip to content

Commit 7826a9d

Browse files
committed
fix cache
1 parent 3a5fd42 commit 7826a9d

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

src/app/chat/[id]/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ import { FindChatThreadByID } from "@/features/chat/chat-services/chat-thread-se
33
import { ChatUI } from "@/features/chat/chat-ui/chat-ui";
44
import { notFound } from "next/navigation";
55

6+
export const dynamic = "force-dynamic";
7+
68
export default async function Home({ params }: { params: { id: string } }) {
79
const [items, thread] = await Promise.all([
810
FindAllChats(params.id),
9-
FindChatThreadByID(params.id)
11+
FindChatThreadByID(params.id),
1012
]);
1113

1214
if (thread.length === 0) {

src/app/chat/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { ChatMenuContainer } from "@/features/chat/chat-menu/chat-menu-container
33
import { MainMenu } from "@/features/menu/menu";
44
import { AI_NAME } from "@/features/theme/customise";
55

6+
export const dynamic = "force-dynamic";
7+
68
export const metadata = {
79
title: AI_NAME,
810
description: AI_NAME,

src/app/chat/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { Card } from "@/components/ui/card";
22
import { StartNewChat } from "@/features/chat/chat-ui/start-new-chat";
33

4+
export const dynamic = "force-dynamic";
5+
46
export default async function Home() {
57
return (
68
<Card className="h-full items-center flex justify-center flex-1">

src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { cn } from "@/lib/utils";
66
import { Inter } from "next/font/google";
77
import "./globals.css";
88

9+
export const dynamic = "force-dynamic";
10+
911
const inter = Inter({ subsets: ["latin"] });
1012

1113
export const metadata = {

src/app/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { Card } from "@/components/ui/card";
33
import { userSession } from "@/features/auth/helpers";
44
import { redirect } from "next/navigation";
55

6+
export const dynamic = "force-dynamic";
7+
68
export default async function Home() {
79
const user = await userSession();
810
if (user) {

0 commit comments

Comments
 (0)