Skip to content

Commit

Permalink
remove revalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
KeziahMoselle committed Jan 22, 2024
1 parent f0bf503 commit eff8749
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 15 deletions.
13 changes: 5 additions & 8 deletions src/pages/database/stories/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,18 @@ export default function DatabaseStories({

<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-y-12 gap-8 lg:gap-20">
{stories.map((story) => (
(<Link
<Link
href={`/database/story/${story.attributes.slug}`}
key={story.attributes.slug}
className="transform transition-transform ease-out-cubic hover:scale-105">

className="transform transition-transform ease-out-cubic hover:scale-105"
>
<Image
objectFit="cover"
objectPosition="center"
src={
story.attributes.cover?.data.attributes.formats?.medium
?.url ??
story.attributes.cover?.data.attributes.formats?.small
?.url ??
story.attributes.cover?.data.attributes.formats?.small?.url ??
story.attributes.cover?.data.attributes.formats?.thumbnail
?.url ??
coverStory
Expand All @@ -53,8 +52,7 @@ export default function DatabaseStories({
<h3 className="text-2xl lg:text-3xl mt-2 text-beige">
{story.attributes.title}
</h3>

</Link>)
</Link>
))}
</div>
</section>
Expand All @@ -69,6 +67,5 @@ export async function getStaticProps() {
props: {
stories,
},
revalidate: 86400,
};
}
1 change: 0 additions & 1 deletion src/pages/database/story/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export async function getStaticProps(context) {
props: {
story,
},
revalidate: 86400,
};
}

Expand Down
1 change: 0 additions & 1 deletion src/pages/event/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ export async function getStaticProps(context) {
costumes,
})
),
revalidate: 30, // Revalidate every 30s
};
}

Expand Down
1 change: 0 additions & 1 deletion src/pages/events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,5 @@ export async function getStaticProps() {
groups,
})
),
revalidate: 30, // Revalidate every 30s
};
}
1 change: 0 additions & 1 deletion src/pages/guide/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export async function getStaticProps(context) {
props: {
guide,
},
revalidate: 60, // Revalidate every minute
};
}

Expand Down
1 change: 0 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ export async function getStaticProps() {
loadouts,
})
),
revalidate: 30, // Revalidate every 30s
};
} catch (error) {
console.log("Homepage: ", error.message);
Expand Down
1 change: 0 additions & 1 deletion src/pages/notices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,5 @@ export async function getStaticProps() {
notifications,
})
),
revalidate: 30,
};
}
2 changes: 1 addition & 1 deletion src/pages/tierlist/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ function CusdisComments({ pageId, pageTitle }) {
);
}

export async function getServerSideProps(context: NextPageContext) {
export async function getStaticProps(context: NextPageContext) {
const { tierlist, items } = await getTierlist({
slug: context.query.slug,
});
Expand Down

0 comments on commit eff8749

Please sign in to comment.