Skip to content

Commit

Permalink
fix: removed cache from token page
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohmn committed Jul 29, 2022
1 parent 1f775a8 commit 84a504b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/pages/tokens/[tokenid].js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export default function Token({ token, wallet }) {
);
}

export async function getStaticProps({ params }) {
export async function getServerSideProps({ params }) {
const { tokenid } = params;
const token = await getTokenById(tokenid);
const { wallet_id } = token;
Expand All @@ -317,14 +317,5 @@ export async function getStaticProps({ params }) {
token,
wallet,
},
revalidate: Number(process.env.NEXT_CACHE_REVALIDATION_OVERRIDE) || 180,
};
}

// eslint-disable-next-line require-await
export async function getStaticPaths() {
return {
paths: [],
fallback: 'blocking',
};
}

0 comments on commit 84a504b

Please sign in to comment.