refactor: remove validation

This commit is contained in:
Mauricio Siu
2024-09-05 01:31:36 -06:00
parent 32bb6a8087
commit ae972ba1dd

View File

@@ -4,7 +4,6 @@ import type { GetServerSidePropsContext } from "next";
import type { ReactElement } from "react";
import * as React from "react";
import { ShowRequests } from "@/components/dashboard/requests/show-requests";
import { isValidLicense } from "@/server/api/services/license";
export default function Requests() {
return <ShowRequests />;
@@ -25,22 +24,6 @@ export async function getServerSideProps(
};
}
if (process.env.NODE_ENV === "development") {
return {
props: {},
};
}
const isValid = await isValidLicense();
if (!isValid) {
return {
redirect: {
permanent: true,
destination: "/dashboard/projects",
},
};
}
return {
props: {},
};