@@ -19,47 +19,44 @@ import { Endpoints } from '@octokit/types';
19
19
20
20
type listRepoIssuesResponse = Endpoints [ 'GET /repos/{owner}/{repo}/issues' ] [ 'response' ] ;
21
21
22
- export async function getStaticProps ( ) {
23
- if ( process . env . PROD_ENV === 'production' ) {
24
- const octokit = new Octokit ( { } ) ;
22
+ // export async function getStaticProps() {
23
+ // if (process.env.PROD_ENV === 'production') {
24
+ // const octokit = new Octokit({});
25
+ // const {
26
+ // data: JsIssues
27
+ // }: {
28
+ // data: listRepoIssuesResponse['data'];
29
+ // } = await octokit.rest.issues.listForRepo({
30
+ // owner: 'aws-amplify',
31
+ // repo: 'amplify-js',
32
+ // state: 'open',
33
+ // labels: 'good first issue',
34
+ // // eslint-disable-next-line @typescript-eslint/camelcase
35
+ // per_page: 6
36
+ // });
37
+ // const {
38
+ // data: CLIissues
39
+ // }: {
40
+ // data: listRepoIssuesResponse['data'];
41
+ // } = await octokit.rest.issues.listForRepo({
42
+ // owner: 'aws-amplify',
43
+ // repo: 'amplify-cli',
44
+ // state: 'open',
45
+ // labels: 'good first issue',
46
+ // // eslint-disable-next-line @typescript-eslint/camelcase
47
+ // per_page: 6
48
+ // });
49
+ // return {
50
+ // props: { JsIssues, CLIissues }
51
+ // };
52
+ // }
25
53
26
- const {
27
- data : JsIssues
28
- } : {
29
- data : listRepoIssuesResponse [ 'data' ] ;
30
- } = await octokit . rest . issues . listForRepo ( {
31
- owner : 'aws-amplify' ,
32
- repo : 'amplify-js' ,
33
- state : 'open' ,
34
- labels : 'good first issue' ,
35
- // eslint-disable-next-line @typescript-eslint/camelcase
36
- per_page : 6
37
- } ) ;
54
+ // return {
55
+ // props: {}
56
+ // };
57
+ // }
38
58
39
- const {
40
- data : CLIissues
41
- } : {
42
- data : listRepoIssuesResponse [ 'data' ] ;
43
- } = await octokit . rest . issues . listForRepo ( {
44
- owner : 'aws-amplify' ,
45
- repo : 'amplify-cli' ,
46
- state : 'open' ,
47
- labels : 'good first issue' ,
48
- // eslint-disable-next-line @typescript-eslint/camelcase
49
- per_page : 6
50
- } ) ;
51
-
52
- return {
53
- props : { JsIssues, CLIissues }
54
- } ;
55
- }
56
-
57
- return {
58
- props : { }
59
- } ;
60
- }
61
-
62
- export default function ContributorPage ( { JsIssues, CLIissues } ) {
59
+ export default function ContributorPage ( ) {
63
60
const meta = {
64
61
title : 'AWS Amplify Contributor Program' ,
65
62
description :
@@ -118,7 +115,7 @@ export default function ContributorPage({ JsIssues, CLIissues }) {
118
115
119
116
< HowItWorks />
120
117
121
- < Flex
118
+ { /* <Flex
122
119
direction="column"
123
120
maxWidth="1024px"
124
121
width={{ base: '90%', large: '60%' }}
@@ -168,7 +165,7 @@ export default function ContributorPage({ JsIssues, CLIissues }) {
168
165
description="The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development."
169
166
/>
170
167
</Card>
171
- </ Flex >
168
+ </Flex> */ }
172
169
173
170
< QuickstartResources />
174
171
{ /* <Contributors /> */ }
0 commit comments