refactor: switch to ssr for unbuilt pages

This commit is contained in:
iCrawl
2022-08-23 00:13:04 +02:00
parent ee030003ec
commit 0fb2694871
2 changed files with 4 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ export const getStaticPaths: GetStaticPaths = async () => {
return {
paths: pkgs,
fallback: true,
fallback: 'blocking',
};
};
@@ -174,6 +174,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
memberName && containerKey ? findMemberByKey(model, packageName, containerKey, branchName) ?? null : null,
source: mdxSource,
},
revalidate: 3600,
},
};
} catch {

View File

@@ -17,7 +17,7 @@ export const getStaticPaths: GetStaticPaths = () => {
return {
paths: versions,
fallback: true,
fallback: 'blocking',
};
};
@@ -41,6 +41,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
data: {
versions: data,
},
revalidate: 3600,
},
};
} catch {