New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use gSP instead of gSSP #24
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/my-covid-story/www/3itHwKT3aqGEmiohPby9tTt48b1u |
name='description' | ||
content='Every covid number has a story which deserves to be shared' | ||
name="description" | ||
content="Every covid number has a story which deserves to be shared" | ||
/> | ||
<link rel='icon' href='/favicon.ico' /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
</Head> | ||
<div className={landing.background} /> | ||
<main className={landing.main}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to setup a format command for lint-staged/husky.
export async function getServerSideProps() { | ||
export async function getStaticProps() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only non-formatting change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM, could throw in revalidate: 10
to allow for newly moderated stories.
Yeah, absolutely. Let's leave it to @davesteinberg as he'll be working on the homepage avec feed etc. |
Switch to
getStaticProps
on the homepage. We'll add revalidate as part of the full homepage buildout.