Squashed commit of the following:
commit e84ca3c1fcb625f8cde160b31c1f2b5def78e0bf Author: zomars <zomars@me.com> Date: Thu Jul 28 14:10:57 2022 -0600 fix commit 29025a1104c2853597b5f3abd0d26aaa27a76aa2 Author: zomars <zomars@me.com> Date: Thu Jul 28 14:10:04 2022 -0600 Force vercel deploy commit b070a6460cf871488340a22d71c14962f37e7023 Author: Hariom Balhara <hariombalhara@gmail.com> Date: Thu Jul 28 19:03:07 2022 +0530 Avoid global variables leak by making the entire code IIFE (#3543) (#3568) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> commitpull/3569/headf05c7c4082
Author: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Date: Wed Jul 27 16:19:59 2022 -0400 Add axiom to next config (#3556) commitc3d05e8686
Author: Hariom Balhara <hariombalhara@gmail.com> Date: Wed Jul 27 14:12:09 2022 +0530 Potential fix, broken workflow (#3545) commit36e1c9272f
Author: zomars <zomars@me.com> Date: Tue Jul 26 18:27:57 2022 -0600 Update [schedule].tsx commitf39535feea
Author: zomars <zomars@me.com> Date: Tue Jul 26 18:07:30 2022 -0600 Update [status].tsx commitc3ac1bcc8c
Author: zomars <zomars@me.com> Date: Tue Jul 26 17:53:43 2022 -0600 Update [schedule].tsx commit39364d8476
Author: zomars <zomars@me.com> Date: Tue Jul 26 17:43:13 2022 -0600 Debugging prod commit4b428d22de
Author: zomars <zomars@me.com> Date: Tue Jul 26 17:20:44 2022 -0600 Update checkLicense.ts commit4212e6d619
Author: zomars <zomars@me.com> Date: Tue Jul 26 17:11:37 2022 -0600 Booking fixes attempt commite3160027ea
Author: zomars <zomars@me.com> Date: Tue Jul 26 13:52:35 2022 -0600 migration conflict fixes
parent
54c8c294fc
commit
e7a91d4594
|
@ -1 +1,28 @@
|
|||
export { default } from "@calcom/features/ee/workflows/pages/workflow";
|
||||
import { GetStaticPaths, GetStaticProps } from "next";
|
||||
import { z } from "zod";
|
||||
|
||||
export { default } from "@ee/pages/workflows/[workflow]";
|
||||
|
||||
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
|
||||
};
|
||||
};
|
||||
|
||||
export const getStaticPaths: GetStaticPaths = () => {
|
||||
return {
|
||||
paths: [],
|
||||
fallback: "blocking",
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue