fix: make workflow page not static (#18925)
* fix: make workflow page not static * fix * fix
This commit is contained in:
1 parent
7fb60fe5f7
commit
ae51c8b599
2 files changed
+5
-11
No files matched your search
@@ -37,8 +37,6 @@ export const generateMetadata = async ({ params }: PageProps): Promise<Metadata
|
||||
);
|
||||
};
|
||||
|
||||
export const generateStaticParams = () => [];
|
||||
|
||||
const Page = async ({ params }: PageProps) => {
|
||||
// const session = await getServerSession({ req: buildLegacyRequest(headers(), cookies()) });
|
||||
// const user = session?.user;
|
||||
@@ -65,13 +63,10 @@ const Page = async ({ params }: PageProps) => {
|
||||
|
||||
return (
|
||||
<LegacyPage
|
||||
// workflowData={workflow} verifiedEmails={verifiedEmails} verifiedNumbers={verifiedNumbers}
|
||||
workflow={parsed.data.workflow}
|
||||
// workflowData={workflow} verifiedEmails={verifiedEmails} verifiedNumbers={verifiedNumbers}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default Page;
|
||||
export const dynamic = "force-static";
|
||||
// generate segments on demand
|
||||
export const dynamicParams = true;
|
||||
export const revalidate = 10;
|
||||
Reference in new issue
Block a user