We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 88805d5 + 23233c6 commit 3e8a272Copy full SHA for 3e8a272
apps/page/pages/_sites/[site]/index.tsx
@@ -186,13 +186,7 @@ export async function getServerSideProps({
186
187
if (!page || !settings || !(await isSubscriptionActive(page?.user_id))) {
188
return {
189
- props: {
190
- page,
191
- settings,
192
- posts: [],
193
- // Returning notFound doesn't work with ISR, hence the hack
194
- notFound: true,
195
- },
+ notFound: true,
196
};
197
}
198
apps/web/pages/404.tsx
@@ -40,8 +40,4 @@ function FourOhFour() {
40
);
41
42
43
-FourOhFour.getInitialProps = () => {
44
- return { statusCode: 404 };
45
-};
46
-
47
export default FourOhFour;
0 commit comments