feat: Cache le blog
This commit is contained in:
parent
f74186e539
commit
3de9faefc8
@ -1,4 +1,4 @@
|
|||||||
import { getBlogPosts } from '@/app/blog/utils'
|
import { getBlogPosts } from '@/blog/utils'
|
||||||
|
|
||||||
export const baseUrl = 'https://portfolio-blog-starter.vercel.app'
|
export const baseUrl = 'https://portfolio-blog-starter.vercel.app'
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { notFound } from 'next/navigation'
|
import { notFound } from 'next/navigation'
|
||||||
import { CustomMDX } from '@/components/Mdx'
|
import { CustomMDX } from '@/components/Mdx'
|
||||||
import { formatDate, getBlogPosts } from '@/app/blog/utils'
|
import { formatDate, getBlogPosts } from '@/blog/utils'
|
||||||
import { baseUrl } from '@/app/sitemap'
|
import { baseUrl } from '@/app/sitemap'
|
||||||
|
|
||||||
export async function generateStaticParams() {
|
export async function generateStaticParams() {
|
@ -1,5 +1,5 @@
|
|||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import { formatDate, getBlogPosts } from '@/app/blog/utils'
|
import { formatDate, getBlogPosts } from '@/blog/utils'
|
||||||
|
|
||||||
export function BlogPosts() {
|
export function BlogPosts() {
|
||||||
let allBlogs = getBlogPosts().sort((a, b) => {
|
let allBlogs = getBlogPosts().sort((a, b) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user