cal.pub0.org/apps/web/pages/workflows/[workflow].tsx

29 lines
644 B
TypeScript
Raw Normal View History

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> commit f05c7c40829947aefb0c67b931420bca18b79b29 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) commit c3d05e86862277c270557bab98e170cc8b051afe Author: Hariom Balhara <hariombalhara@gmail.com> Date: Wed Jul 27 14:12:09 2022 +0530 Potential fix, broken workflow (#3545) commit 36e1c9272fa9b86cbe9e53e03e83799820674f17 Author: zomars <zomars@me.com> Date: Tue Jul 26 18:27:57 2022 -0600 Update [schedule].tsx commit f39535feea22a11a857d179f3506803602a95728 Author: zomars <zomars@me.com> Date: Tue Jul 26 18:07:30 2022 -0600 Update [status].tsx commit c3ac1bcc8c7ff8dc7ebf178d23a6e5c7ea223749 Author: zomars <zomars@me.com> Date: Tue Jul 26 17:53:43 2022 -0600 Update [schedule].tsx commit 39364d8476b3c582d4a7fe3f8d139c5d254e3ecf Author: zomars <zomars@me.com> Date: Tue Jul 26 17:43:13 2022 -0600 Debugging prod commit 4b428d22dec734dab19096b4fe07741f18e5bc5d Author: zomars <zomars@me.com> Date: Tue Jul 26 17:20:44 2022 -0600 Update checkLicense.ts commit 4212e6d61908face52d647bb661d71db959cf864 Author: zomars <zomars@me.com> Date: Tue Jul 26 17:11:37 2022 -0600 Booking fixes attempt commit e3160027ea0ce40d129b445daeb3bb17711ac640 Author: zomars <zomars@me.com> Date: Tue Jul 26 13:52:35 2022 -0600 migration conflict fixes
2022-07-30 01:28:54 +00:00
import { GetStaticPaths, GetStaticProps } from "next";
import { z } from "zod";
2022-07-30 04:34:57 +00:00
export { default } from "@calcom/features/ee/workflows/pages/workflow";
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> commit f05c7c40829947aefb0c67b931420bca18b79b29 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) commit c3d05e86862277c270557bab98e170cc8b051afe Author: Hariom Balhara <hariombalhara@gmail.com> Date: Wed Jul 27 14:12:09 2022 +0530 Potential fix, broken workflow (#3545) commit 36e1c9272fa9b86cbe9e53e03e83799820674f17 Author: zomars <zomars@me.com> Date: Tue Jul 26 18:27:57 2022 -0600 Update [schedule].tsx commit f39535feea22a11a857d179f3506803602a95728 Author: zomars <zomars@me.com> Date: Tue Jul 26 18:07:30 2022 -0600 Update [status].tsx commit c3ac1bcc8c7ff8dc7ebf178d23a6e5c7ea223749 Author: zomars <zomars@me.com> Date: Tue Jul 26 17:53:43 2022 -0600 Update [schedule].tsx commit 39364d8476b3c582d4a7fe3f8d139c5d254e3ecf Author: zomars <zomars@me.com> Date: Tue Jul 26 17:43:13 2022 -0600 Debugging prod commit 4b428d22dec734dab19096b4fe07741f18e5bc5d Author: zomars <zomars@me.com> Date: Tue Jul 26 17:20:44 2022 -0600 Update checkLicense.ts commit 4212e6d61908face52d647bb661d71db959cf864 Author: zomars <zomars@me.com> Date: Tue Jul 26 17:11:37 2022 -0600 Booking fixes attempt commit e3160027ea0ce40d129b445daeb3bb17711ac640 Author: zomars <zomars@me.com> Date: Tue Jul 26 13:52:35 2022 -0600 migration conflict fixes
2022-07-30 01:28:54 +00:00
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",
};
};