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>
This commit is contained in:
parent
9d2fcd635c
commit
7b80fc2a65
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user