Skip to content

Commit

Permalink
chore: temporary fix fo article
Browse files Browse the repository at this point in the history
  • Loading branch information
rutajdash committed Apr 30, 2022
1 parent aa8af30 commit 9b1f499
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/config/ApolloClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const link = from([
new HttpLink({
uri:
process.env.NODE_ENV === 'production'
? 'https://mondaymorning.nitrkl.ac.in/api/v1/graph'
? 'https://mm.dashnet.in/api/v1/graph'
: 'https://project-reclamation-staging.herokuapp.com/v1/graph',
}),
]);
Expand Down
14 changes: 13 additions & 1 deletion client/src/pages/article/[...article].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,19 @@ export async function getStaticProps({
}

export async function getStaticPaths() {
return { paths: [], fallback: 'blocking' };
return {
paths: [
{
params: {
article: [
'626d29bbc849aea28d531657',
'Re-jubin-ate-to-the-tunes-of-Celebrity-Night',
],
},
},
],
fallback: 'blocking',
};
}

export default ArticlePage;

0 comments on commit 9b1f499

Please sign in to comment.