1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-15 04:05:32 -04:00

generate /projects page with ISR instead of calling the API on every single request (closes #715)

https://nextjs.org/docs/basic-features/data-fetching#incremental-static-regeneration
This commit is contained in:
2021-12-30 18:58:14 -05:00
parent 8a44d1994c
commit f18277b940
4 changed files with 72 additions and 38 deletions

View File

@@ -71,7 +71,7 @@ const mdxComponents = {
/>
),
gist: (props: { id: string; file?: string }) => <Gist {...props} />,
octocat: (props) => (
octocat: (props: { repo: string }) => (
<a className="no-underline" href={`https://github.com/${props.repo}`} target="_blank" rel="noopener noreferrer">
<MarkGithubIcon size={24} verticalAlign="text-top" />
<style jsx>{`