Skip to content

Commit 3e8a272

Browse files
authored
Merge pull request #39 from techulus/develop
Fix build
2 parents 88805d5 + 23233c6 commit 3e8a272

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

apps/page/pages/_sites/[site]/index.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,7 @@ export async function getServerSideProps({
186186

187187
if (!page || !settings || !(await isSubscriptionActive(page?.user_id))) {
188188
return {
189-
props: {
190-
page,
191-
settings,
192-
posts: [],
193-
// Returning notFound doesn't work with ISR, hence the hack
194-
notFound: true,
195-
},
189+
notFound: true,
196190
};
197191
}
198192

apps/web/pages/404.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,4 @@ function FourOhFour() {
4040
);
4141
}
4242

43-
FourOhFour.getInitialProps = () => {
44-
return { statusCode: 404 };
45-
};
46-
4743
export default FourOhFour;

0 commit comments

Comments
 (0)