File tree Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ import { FindChatThreadByID } from "@/features/chat/chat-services/chat-thread-se
3
3
import { ChatUI } from "@/features/chat/chat-ui/chat-ui" ;
4
4
import { notFound } from "next/navigation" ;
5
5
6
+ export const dynamic = "force-dynamic" ;
7
+
6
8
export default async function Home ( { params } : { params : { id : string } } ) {
7
9
const [ items , thread ] = await Promise . all ( [
8
10
FindAllChats ( params . id ) ,
9
- FindChatThreadByID ( params . id )
11
+ FindChatThreadByID ( params . id ) ,
10
12
] ) ;
11
13
12
14
if ( thread . length === 0 ) {
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import { ChatMenuContainer } from "@/features/chat/chat-menu/chat-menu-container
3
3
import { MainMenu } from "@/features/menu/menu" ;
4
4
import { AI_NAME } from "@/features/theme/customise" ;
5
5
6
+ export const dynamic = "force-dynamic" ;
7
+
6
8
export const metadata = {
7
9
title : AI_NAME ,
8
10
description : AI_NAME ,
Original file line number Diff line number Diff line change 1
1
import { Card } from "@/components/ui/card" ;
2
2
import { StartNewChat } from "@/features/chat/chat-ui/start-new-chat" ;
3
3
4
+ export const dynamic = "force-dynamic" ;
5
+
4
6
export default async function Home ( ) {
5
7
return (
6
8
< Card className = "h-full items-center flex justify-center flex-1" >
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import { cn } from "@/lib/utils";
6
6
import { Inter } from "next/font/google" ;
7
7
import "./globals.css" ;
8
8
9
+ export const dynamic = "force-dynamic" ;
10
+
9
11
const inter = Inter ( { subsets : [ "latin" ] } ) ;
10
12
11
13
export const metadata = {
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import { Card } from "@/components/ui/card";
3
3
import { userSession } from "@/features/auth/helpers" ;
4
4
import { redirect } from "next/navigation" ;
5
5
6
+ export const dynamic = "force-dynamic" ;
7
+
6
8
export default async function Home ( ) {
7
9
const user = await userSession ( ) ;
8
10
if ( user ) {
You can’t perform that action at this time.
0 commit comments