fix(blog): dev server not working

This commit is contained in:
Kim, Jimin 2024-04-27 23:22:02 +09:00
parent ae68974ead
commit 037a5625fb
Signed by: pomp
GPG key ID: 2B516173EDD492EB

View file

@ -24,6 +24,14 @@ interface Props {
params: Params
}
/**
* https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#dynamicparams
*/
export const dynamicParams = false
/**
* https://nextjs.org/docs/app/api-reference/functions/generate-static-params
*/
export async function generateStaticParams(): Promise<Params[]> {
return Object.keys(contentMap.posts).map((key) => {
const contentID = key.replace(/\/$/, "") // remove trailing slash