Browse Source

fix: remove redirect handling from server-side props in share page

Shun Miyazawa 4 months ago
parent
commit
0edffd9c92
1 changed files with 0 additions and 11 deletions
  1. 0 11
      apps/app/src/pages/share/[[...path]]/index.page.tsx

+ 0 - 11
apps/app/src/pages/share/[[...path]]/index.page.tsx

@@ -157,17 +157,6 @@ export const getServerSideProps: GetServerSideProps<Props> = async (
   ) {
     return commonEachPropsResult;
   }
-  const commonEachProps = await commonEachPropsResult.props;
-
-  // Handle redirect destination from common props
-  if (commonEachProps.redirectDestination != null) {
-    return {
-      redirect: {
-        permanent: false,
-        destination: commonEachProps.redirectDestination,
-      },
-    };
-  }
 
   //
   // STAGE 2