Compare commits

...

1 Commits

Author SHA1 Message Date
google-labs-jules[bot]
7b80fc2a65 fix(xworkmate): correct dynamic export order causing build failure
- Ensure `export const dynamic = "force-dynamic"` is placed after imports and before the component in `admin/page.tsx` and `integrations/page.tsx` to prevent Next.js prerender errors where global dynamic layout rules were incorrectly caching `headers()`.

Co-authored-by: cloud-neutral <4133689+cloud-neutral@users.noreply.github.com>
2026-03-18 04:31:17 +00:00
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,8 @@
import { headers } from "next/headers";
import { redirect } from "next/navigation";
export const dynamic = "force-dynamic";
import { XWorkmateProfileEditor } from "@/components/xworkmate/XWorkmateProfileEditor";
export const dynamic = "force-dynamic";
import {
buildSharedXWorkmateUrl,
isLegacyConsoleXWorkmateHost,

View File

@ -1,7 +1,8 @@
import { headers } from "next/headers";
import { redirect } from "next/navigation";
export const dynamic = "force-dynamic";
import { XWorkmateProfileEditor } from "@/components/xworkmate/XWorkmateProfileEditor";
export const dynamic = "force-dynamic";
import {
buildSharedXWorkmateUrl,
isLegacyConsoleXWorkmateHost,