Skip to content
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

Merged
merged 1 commit into from Apr 19, 2021
Merged

use gSP instead of gSSP #24

merged 1 commit into from Apr 19, 2021

Conversation

mwickett
Copy link
Contributor

@mwickett mwickett commented Apr 19, 2021

Switch to getStaticProps on the homepage. We'll add revalidate as part of the full homepage buildout.

@vercel
Copy link

vercel bot commented Apr 19, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/my-covid-story/www/3itHwKT3aqGEmiohPby9tTt48b1u
✅ Preview: https://www-git-mwstatic-homepage-my-covid-story.vercel.app

Comment on lines -16 to 22
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}>
Copy link
Contributor Author

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.

Comment on lines -79 to +82
export async function getServerSideProps() {
export async function getStaticProps() {
Copy link
Contributor Author

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.

Copy link
Contributor

@silent1mezzo silent1mezzo left a 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.

@mwickett mwickett merged commit d6a95df into main Apr 19, 2021
@mwickett mwickett deleted the mw.static-homepage branch April 19, 2021 17:08
@mwickett
Copy link
Contributor Author

Yeah, absolutely. Let's leave it to @davesteinberg as he'll be working on the homepage avec feed etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants