fix: Move future/workflow/[workflow] getStaticProps into separate file (#16124)
This commit is contained in:
1 parent
356ecfe2fa
commit
6b244fc5b5
2 files changed
+22
-1
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import LegacyPage, { getStaticProps } from "@pages/workflows/[workflow]";
|
||||
import LegacyPage from "@pages/workflows/[workflow]";
|
||||
import { withAppDirSsg } from "app/WithAppDirSsg";
|
||||
import type { PageProps } from "app/_types";
|
||||
import { _generateMetadata } from "app/_utils";
|
||||
@@ -7,6 +7,8 @@ import { headers, cookies } from "next/headers";
|
||||
|
||||
import { buildLegacyCtx } from "@lib/buildLegacyCtx";
|
||||
|
||||
import { getStaticProps } from "~/workflows/workflow-single-view.getStaticProps";
|
||||
|
||||
export const generateMetadata = async ({ params, searchParams }: PageProps) => {
|
||||
const { workflow } = await getData(buildLegacyCtx(headers(), cookies(), params, searchParams));
|
||||
return await _generateMetadata(
|
||||
|
||||
Reference in new issue
Block a user