chore: App router migration (/workflows) fix metadata and remove duplicate file for getStaticProps (#16452)

* Fix metadata

* add use client directive to workflow component
This commit is contained in:
Benny Joo authored and GitHub committed 2024-09-02 23:00:48 +05:30
1 parent 779eb19e7a
commit 55d75a9786
6 files changed
+67 -72

No files matched your search

@@ -1,19 +0,0 @@
import type { GetStaticProps } from "next";
import { z } from "zod";
const querySchema = z.object({
workflow: z.string(),
});
export const getStaticProps: GetStaticProps = (ctx) => {
const params = querySchema.safeParse(ctx.params);
console.log("Built workflow page:", params);
if (!params.success) return { notFound: true };
return {
props: {
workflow: params.data.workflow,
},
revalidate: 10, // seconds
};
};