Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix: try server side rendering without redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
tthttl committed Apr 12, 2023
1 parent 5e763c7 commit 5de150d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pages/mumble/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,6 @@ export const getServerSideProps: GetServerSideProps<
> = async (context: GetServerSidePropsContext) => {
try {
const session = await getToken({ req: context.req });
if (!session) {
return {
redirect: {
destination: '/',
permanent: false,
},
};
}
const { post, replies } = await getMumbleDetailsWithUserData(
session?.accessToken as string,
context.query.id as string
Expand Down

1 comment on commit 5de150d

@vercel
Copy link

@vercel vercel bot commented on 5de150d Apr 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.