Files
cal.diy/packages/app-store/stripepayment/pages/setup/_getServerSideProps.ts
T
2021b641ce feat: Alby integration (#11495)
Co-authored-by: Peer Richelsen <peer@cal.com>
Co-authored-by: alannnc <alannnc@gmail.com>
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2023-09-28 12:03:01 +00:00

13 lines
379 B
TypeScript

import type { GetServerSidePropsContext } from "next";
export const getServerSideProps = async (ctx: GetServerSidePropsContext) => {
if (typeof ctx.params?.slug !== "string") return { notFound: true } as const;
const targetUrl = "https://dashboard.stripe.com/settings/connect";
return {
redirect: {
destination: targetUrl,
permanent: false,
},
};
};