time GSSP

This commit is contained in:
m5r
2021-07-21 11:29:29 +08:00
parent 6a12d0cd93
commit 067d0d97c4
3 changed files with 9 additions and 15 deletions

View File

@ -114,10 +114,9 @@ export function withPageAuthRequired<Props extends EmptyProps = EmptyProps>(
};
}
const getServerSidePropsResult = await getServerSideProps(
context,
user,
);
const start = Date.now();
const getServerSidePropsResult = await getServerSideProps(context, user);
console.log("getServerSideProps took", Date.now() - start);
if (!hasProps(getServerSidePropsResult)) {
return getServerSidePropsResult;
}