chore: remove unused getStaticProps file (#18928)

This commit is contained in:
Benny Joo
2025-01-27 22:36:46 +00:00
committed by GitHub
parent 7d4abea9b4
commit cd413cf640
@@ -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 } as const;
return {
props: {
workflow: params.data.workflow,
},
revalidate: 10, // seconds
};
};