fix: explicit dynamic rendering for xworkmate routes
The layout.tsx applies `export const dynamic = 'error'` globally, which causes the build to fail for routes that use dynamic functions like `headers()`. This commit explicitly adds `export const dynamic = 'force-dynamic'` to the `/xworkmate/page.tsx`, `/xworkmate/admin/page.tsx`, and `/xworkmate/integrations/page.tsx` routes, resolving the Next.js static rendering build error. Co-authored-by: cloud-neutral <4133689+cloud-neutral@users.noreply.github.com>
This commit is contained in:
parent
4329953274
commit
9f0f56f509
@ -1,6 +1,8 @@
|
||||
import { headers } from "next/headers";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
import { XWorkmateProfileEditor } from "@/components/xworkmate/XWorkmateProfileEditor";
|
||||
import {
|
||||
buildSharedXWorkmateUrl,
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
import { headers } from "next/headers";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
import { XWorkmateProfileEditor } from "@/components/xworkmate/XWorkmateProfileEditor";
|
||||
import {
|
||||
buildSharedXWorkmateUrl,
|
||||
|
||||
@ -2,6 +2,8 @@ import { Suspense } from "react";
|
||||
import { headers } from "next/headers";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
import { XWorkmateLoading } from "@/app/xworkmate/XWorkmateLoading";
|
||||
import { XWorkmateWorkspacePage } from "@/components/xworkmate/XWorkmateWorkspacePage";
|
||||
import {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user