mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 12:28:54 +00:00
temp workaround: remove use of get static prop
This commit is contained in:
@@ -212,11 +212,10 @@ const main = async () => {
|
|||||||
app.use("/api", healthCheck);
|
app.use("/api", healthCheck);
|
||||||
|
|
||||||
if (process.env.NODE_ENV == "production") {
|
if (process.env.NODE_ENV == "production") {
|
||||||
const dir = path.join(__dirname, "../frontend-build");
|
const nextJsBuildPath = path.join(__dirname, "../frontend-build");
|
||||||
process.chdir(dir);
|
|
||||||
const nextApp = next({
|
const nextApp = next({
|
||||||
dev: false,
|
dev: false,
|
||||||
dir
|
dir: nextJsBuildPath
|
||||||
});
|
});
|
||||||
|
|
||||||
const nextHandler = nextApp.getRequestHandler();
|
const nextHandler = nextApp.getRequestHandler();
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ import frameworkIntegrationOptions from "public/json/frameworkIntegrations.json"
|
|||||||
|
|
||||||
import { IntegrationsPage } from "@app/views/IntegrationsPage";
|
import { IntegrationsPage } from "@app/views/IntegrationsPage";
|
||||||
|
|
||||||
type Props = {
|
// type Props = {
|
||||||
frameworkIntegrations: typeof frameworkIntegrationOptions;
|
// frameworkIntegrations: typeof frameworkIntegrationOptions;
|
||||||
};
|
// };
|
||||||
|
|
||||||
const Integration = ({ frameworkIntegrations }: Props) => {
|
const Integration = () => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -20,25 +20,25 @@ const Integration = ({ frameworkIntegrations }: Props) => {
|
|||||||
<meta property="og:title" content="Manage your .env files in seconds" />
|
<meta property="og:title" content="Manage your .env files in seconds" />
|
||||||
<meta name="og:description" content={t("integrations.description") as string} />
|
<meta name="og:description" content={t("integrations.description") as string} />
|
||||||
</Head>
|
</Head>
|
||||||
<IntegrationsPage frameworkIntegrations={frameworkIntegrations} />
|
<IntegrationsPage frameworkIntegrations={frameworkIntegrationOptions} />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getStaticProps = () => {
|
// export const getStaticProps = () => {
|
||||||
return {
|
// return {
|
||||||
props: {
|
// props: {
|
||||||
frameworkIntegrations: frameworkIntegrationOptions
|
// frameworkIntegrations: frameworkIntegrationOptions
|
||||||
}
|
// }
|
||||||
};
|
// };
|
||||||
};
|
// };
|
||||||
|
|
||||||
export const getStaticPaths = async () => {
|
// export const getStaticPaths = async () => {
|
||||||
return {
|
// return {
|
||||||
paths: [], // indicates that no page needs be created at build time
|
// paths: [], // indicates that no page needs be created at build time
|
||||||
fallback: "blocking" // indicates the type of fallback
|
// fallback: true // indicates the type of fallback
|
||||||
};
|
// };
|
||||||
};
|
// };
|
||||||
|
|
||||||
Integration.requireAuth = true;
|
Integration.requireAuth = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user