This commit is contained in:
2026-03-24 09:21:38 +09:00
parent e4d2966377
commit 39c7eda9cc
31 changed files with 1655 additions and 135 deletions

View File

@@ -13,8 +13,8 @@ export interface PageProps {
export default async function PostPage({ params }: PageProps) {
const { slug } = await params;
const baseUrl =
process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3000';
const baseUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3000';
const res = await fetch(`${baseUrl}/api/posts/${slug}`, {
next: { revalidate: 60 },