feat: implement static blog post pages and update output configuration for static site export
This commit is contained in:
+4
-1
@@ -1,7 +1,10 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
output: "export",
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
"use client";
|
||||
export interface BlogSection {
|
||||
title: string;
|
||||
paragraphs?: string[];
|
||||
|
||||
@@ -1 +1,14 @@
|
||||
export { default } from "../../(features)/ResourcePage/BlogDetailPage";
|
||||
import BlogDetailPage from "../../(features)/ResourcePage/BlogDetailPage";
|
||||
import { BLOG_POSTS } from "../../(features)/ResourcePage/data/blogData";
|
||||
|
||||
export async function generateStaticParams() {
|
||||
return BLOG_POSTS.map((post) => ({
|
||||
slug: post.slug,
|
||||
}));
|
||||
}
|
||||
|
||||
export const dynamicParams = false;
|
||||
|
||||
export default function Page() {
|
||||
return <BlogDetailPage />;
|
||||
}
|
||||
Reference in New Issue
Block a user