🐛 Fix return notFound when composing props

This commit is contained in:
Luke Vella 2023-06-19 19:14:36 +01:00
parent c22b3abc4d
commit 1710c3bee6

View file

@ -8,6 +8,10 @@ export function composeGetServerSideProps(
for (const getServerSideProps of fns) {
const fnRes = await getServerSideProps(ctx);
if ("notFound" in fnRes) {
return fnRes;
}
if ("redirect" in fnRes) {
return fnRes;
}