mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-10 15:36:49 +02:00
🐛 Fix return notFound when composing props
This commit is contained in:
parent
c22b3abc4d
commit
1710c3bee6
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue