revert: temp workaround: remove use of get static prop

pull/1089/head
nafees nazik 7 months ago
parent ba41244877
commit 136308f299

@ -4,11 +4,11 @@ import frameworkIntegrationOptions from "public/json/frameworkIntegrations.json"
import { IntegrationsPage } from "@app/views/IntegrationsPage";
// type Props = {
// frameworkIntegrations: typeof frameworkIntegrationOptions;
// };
type Props = {
frameworkIntegrations: typeof frameworkIntegrationOptions;
};
const Integration = () => {
const Integration = ({ frameworkIntegrations }: Props) => {
const { t } = useTranslation();
return (
@ -20,25 +20,25 @@ const Integration = () => {
<meta property="og:title" content="Manage your .env files in seconds" />
<meta name="og:description" content={t("integrations.description") as string} />
</Head>
<IntegrationsPage frameworkIntegrations={frameworkIntegrationOptions} />
<IntegrationsPage frameworkIntegrations={frameworkIntegrations} />
</>
);
};
// export const getStaticProps = () => {
// return {
// props: {
// frameworkIntegrations: frameworkIntegrationOptions
// }
// };
// };
// export const getStaticPaths = async () => {
// return {
// paths: [], // indicates that no page needs be created at build time
// fallback: true // indicates the type of fallback
// };
// };
export const getStaticProps = () => {
return {
props: {
frameworkIntegrations: frameworkIntegrationOptions
}
};
};
export const getStaticPaths = async () => {
return {
paths: [], // indicates that no page needs be created at build time
fallback: "blocking" // indicates the type of fallback
};
};
Integration.requireAuth = true;

Loading…
Cancel
Save