feat: Cache le blog

This commit is contained in:
Simon C 2024-05-06 22:36:39 +02:00
parent f74186e539
commit 3de9faefc8
8 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import { getBlogPosts } from '@/app/blog/utils'
import { getBlogPosts } from '@/blog/utils'
export const baseUrl = 'https://portfolio-blog-starter.vercel.app'

View File

@ -1,6 +1,6 @@
import { notFound } from 'next/navigation'
import { CustomMDX } from '@/components/Mdx'
import { formatDate, getBlogPosts } from '@/app/blog/utils'
import { formatDate, getBlogPosts } from '@/blog/utils'
import { baseUrl } from '@/app/sitemap'
export async function generateStaticParams() {

View File

@ -1,5 +1,5 @@
import Link from 'next/link'
import { formatDate, getBlogPosts } from '@/app/blog/utils'
import { formatDate, getBlogPosts } from '@/blog/utils'
export function BlogPosts() {
let allBlogs = getBlogPosts().sort((a, b) => {