fix: force blog index, blog index pages, and blog pages to be static

This commit is contained in:
Dorian Niemiec 2024-09-07 15:58:16 +02:00
parent 96ac8535f8
commit 8235010257
3 changed files with 6 additions and 0 deletions

View file

@ -40,6 +40,8 @@ interface BlogSlugArticle {
_createdAt: string;
}
export const dynamic = "force-static";
export async function generateMetadata({
params
}: {

View file

@ -5,6 +5,8 @@ import { Rss } from "lucide-react";
import { Button } from "@/components/ui/button";
import Link from "next/link";
export const dynamic = "force-static";
export const metadata: Metadata = {
title: "Blog - SVR.JS",
description:

View file

@ -6,6 +6,8 @@ import { Rss } from "lucide-react";
import { Button } from "@/components/ui/button";
import Link from "next/link";
export const dynamic = "force-static";
export const metadata: Metadata = {
title: "Blog - SVR.JS",
description: