소스 검색

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

Shun Miyazawa 4 달 전
부모
커밋
0edffd9c92
1개의 변경된 파일0개의 추가작업 그리고 11개의 파일을 삭제
  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;
     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
   // STAGE 2