import fs from "fs" import path from "path" import { remark } from "remark" import html from "remark-html" async function getChangelog() { const changelogPath = path.join(process.cwd(), "CHANGELOG.md") const fileContents = fs.readFileSync(changelogPath, "utf8") const result = await remark().use(html).process(fileContents) return result.toString() } export default async function ChangelogPage() { const changelogContent = await getChangelog() return (

Changelog

) }