Skip to content

Commit

Permalink
fix: added export const dynamic='force-dynamic'; (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
khoonie authored Oct 16, 2024
1 parent c7a96dd commit af222fc
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/app/(ee)/settings/logs/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,5 @@ export default async function LogDetails({
</div>
);
}
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/app/(ee)/settings/logs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ export default async function Logs() {
</div>
);
}
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/app/admin/chat/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,3 +295,5 @@ const ChatPage = () => {
);
};
export default ChatPage;
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/app/admin/conversations/[id]/messages/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,5 @@ const ChatDetails = () => {
);
};
export default ChatDetails;
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/app/admin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ import { redirect } from "next/navigation";
export default function Home() {
redirect("/admin/chat");
}
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ const MainPage = () => {
};

export default MainPage;
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/app/settings/datasets/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ export default async function DatasetDetailsPage({ params }: PageProps) {
</>
);
}
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/app/settings/datasets/add/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,5 @@ const AddDataSet = () => {
);
};
export default AddDataSet;
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/app/settings/datasets/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ export default async function Datasets() {
</div>
);
}
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/app/settings/general/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,5 @@ const GeneralPage = () => {
};

export default GeneralPage;
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/app/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ import { redirect } from "next/navigation";
export default function Home() {
redirect("/settings/datasets");
}
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/app/settings/workspaces/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,5 @@ export default async function WorkSpacesDetails({ params }: PageProps) {
</div>
);
}
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/app/settings/workspaces/addspaces/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ export default async function AddSpaces() {
</div>
);
}
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/app/settings/workspaces/editspaces/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ export default async function EditWorkSpaces({ searchParams }) {
</div>
);
}
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/app/settings/workspaces/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ export default async function WorkSpaces() {
</div>
);
}
export const dynamic='force-dynamic';

2 changes: 2 additions & 0 deletions client/components/ChatLoader/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ const ChatLoader = () => {
);
};
export default ChatLoader;
export const dynamic='force-dynamic';

0 comments on commit af222fc

Please sign in to comment.