fix: revalidates

Signed-off-by: Filipe Medeiros <hello@filipesm.eu>
This commit is contained in:
Filipe Medeiros 2022-12-24 01:13:55 +00:00
parent 5ff4edc634
commit cda6d602ac
Signed by: filipe
GPG key ID: 9533BD5467CC1E78
3 changed files with 5 additions and 1 deletions

View file

@ -15,7 +15,7 @@ import getBlockRecursively from '@/lib/notion/utils/getBlockRecursively'
import getProxiedAssetUrl from '@/lib/notion/utils/getProxiedAssetUrl' import getProxiedAssetUrl from '@/lib/notion/utils/getProxiedAssetUrl'
import richTextAsPlainText from '@/lib/notion/utils/richTextToPlainText' import richTextAsPlainText from '@/lib/notion/utils/richTextToPlainText'
export const revalidate = 60 export const revalidate = 600
export async function generateStaticParams() { export async function generateStaticParams() {
const rssPromise = generateRssFeed() const rssPromise = generateRssFeed()

View file

@ -9,6 +9,8 @@ import formatDate from '@/lib/formatDate'
import { getFirstBlogPosts } from '@/lib/notion/content/blogPosts' import { getFirstBlogPosts } from '@/lib/notion/content/blogPosts'
import richTextAsPlainText from '@/lib/notion/utils/richTextToPlainText' import richTextAsPlainText from '@/lib/notion/utils/richTextToPlainText'
export const revalidate = 600
function BlogPost({ function BlogPost({
slug, slug,
title, title,

View file

@ -7,6 +7,8 @@ import { getProjects } from '@/lib/notion/content/projects'
import getProxiedAssetUrl from '@/lib/notion/utils/getProxiedAssetUrl' import getProxiedAssetUrl from '@/lib/notion/utils/getProxiedAssetUrl'
import richTextAsPlainText from '@/lib/notion/utils/richTextToPlainText' import richTextAsPlainText from '@/lib/notion/utils/richTextToPlainText'
export const revalidate = 600
function LinkIcon(props: IconProps) { function LinkIcon(props: IconProps) {
return ( return (
<svg viewBox="0 0 24 24" aria-hidden="true" {...props}> <svg viewBox="0 0 24 24" aria-hidden="true" {...props}>