-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
01 09 chore reuse get server side props #170
base: main
Are you sure you want to change the base?
Conversation
Hey there and thank you for opening this pull request! 👋🏼 We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted. Details:
|
return <LegacyPage />; | ||
} | ||
// @ts-expect-error Argument of type '(ctx: AppGetServerSidePropsContext) => Promise<{ redirect: { destination: string; permanent: boolean; }; notFound?: undefined; props?: undefined; } | ||
export default WithLayout({ getLayout: null, getData: withAppDirSsr(getServerSideProps), Page }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove the @ts-expect-error
directive from here?
@@ -12,8 +12,8 @@ export const generateMetadata = async () => | |||
(t) => t("no_meeting_found") | |||
); | |||
|
|||
// ssr was added by Intuita, legacy page does not have it | |||
const getData = async (context: ReturnType<typeof buildLegacyCtx>) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we change the type of context
here to GetServerSidePropsContext
?
if (!session?.user?.id) { | ||
return res.writeHead(401).end(); | ||
} | ||
// if (!session?.user?.id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be restored?
c5f0aaa
to
8393c8c
Compare
03e41ac
to
04681e8
Compare
0ced69a
to
37f46b9
Compare
ee14b31
to
e3d3377
Compare
1551022
to
a699489
Compare
This PR is being marked as stale due to inactivity. |
What does this PR do?
Fixes # (issue)
Requirement/Documentation
Type of change
How should this be tested?
Mandatory Tasks
Checklist