File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ export const getStaticProps: GetStaticProps = async ({ locale }) => {
1010 await Promise . all ( [
1111 prefetchSharedQueries ( client , locale ) ,
1212 queryAllJobListings ( client , {
13- language : locale ,
1413 conference : process . env . conferenceCode ,
1514 } ) ,
1615 ] ) ;
@@ -24,26 +23,19 @@ export const getStaticPaths: GetStaticPaths = async () => {
2423 const client = getApolloClient ( ) ;
2524
2625 const {
27- data : { jobListings : italianJobListings } ,
26+ data : { jobListings } ,
2827 } = await queryAllJobListings ( client , {
29- language : "it" ,
30- conference : process . env . conferenceCode ,
31- } ) ;
32- const {
33- data : { jobListings : englishJobListings } ,
34- } = await queryAllJobListings ( client , {
35- language : "en" ,
3628 conference : process . env . conferenceCode ,
3729 } ) ;
3830
3931 const paths = [
40- ...italianJobListings . map ( ( page ) => ( {
32+ ...jobListings . map ( ( page ) => ( {
4133 params : {
4234 id : page . id ,
4335 } ,
4436 locale : "it" ,
4537 } ) ) ,
46- ...englishJobListings . map ( ( page ) => ( {
38+ ...jobListings . map ( ( page ) => ( {
4739 params : {
4840 id : page . id ,
4941 } ,
You can’t perform that action at this time.
0 commit comments