Skip to content

Commit

Permalink
fix: making requests duiring the next.js build process (#1382)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyb authored Oct 16, 2024
1 parent e3f30b9 commit c4418ab
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 0 deletions.
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 @@ -2,6 +2,8 @@ import React from "react";
import { GetLogs } from "@/services/logs";
import LogsCard from "./logs-card";

export const dynamic = 'force-dynamic';

export default async function Logs() {
const data = await GetLogs();

Expand Down
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 @@ -3,6 +3,8 @@ import Link from "next/link";
import DatasetCard from "./DatasetCard";
import { GetDatasetDetails } from "@/services/datasets";

export const dynamic = 'force-dynamic';

interface PageProps {
params: {
id: string;
Expand Down
2 changes: 2 additions & 0 deletions client/app/settings/datasets/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { Button } from "@/components/ui/button";
import { GetAllDataSets } from "@/services/datasets";
import AddNewCard from "./AddNewCard";

export const dynamic = 'force-dynamic';

export default async function Datasets() {
const data = await GetAllDataSets();

Expand Down
3 changes: 3 additions & 0 deletions client/app/settings/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { redirect } from "next/navigation";

export const dynamic = 'force-dynamic';

export default function Home() {
redirect("/settings/datasets");
}
Expand Down
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 @@ -4,6 +4,8 @@ import { GetAllDataSets } from "@/services/datasets";
import AddSpaceCard from "./AddSpaceCard";
import { Button } from "@/components/ui/button";

export const dynamic = 'force-dynamic';

export default async function AddSpaces() {
const data = await GetAllDataSets();

Expand Down
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 @@ -4,6 +4,8 @@ import { GetAllDataSets } from "@/services/datasets";
import EditSpaceCard from "./EditSpaceCard";
import { GetWorkspaceDetails } from "@/services/spaces";

export const dynamic = 'force-dynamic';

export default async function EditWorkSpaces({ searchParams }) {
const data = await GetAllDataSets();
const workspaceDetails = await GetWorkspaceDetails(searchParams.id);
Expand Down
2 changes: 2 additions & 0 deletions client/app/settings/workspaces/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import AppTooltip from "@/components/AppTooltip";
import { Button } from "@/components/ui/button";
import { GetAllWorkspaces } from "@/services/spaces";

export const dynamic = 'force-dynamic';

export default async function WorkSpaces() {
const data = await GetAllWorkspaces();

Expand Down

0 comments on commit c4418ab

Please sign in to comment.