// app/kodukord/page.tsx (App Router) import fs from "node:fs"; import path from "node:path"; import ReactMarkdown from "react-markdown"; import remarkGfm from "remark-gfm"; import {vipnagorgialla} from "@/components/Vipnagorgialla"; import SectionDivider from "@/components/SectionDivider"; export const runtime = "nodejs"; // ensure fs is available (not Edge) export const dynamic = "force-static"; // read at build time export default function Page() { const filePath = path.join(process.cwd(), "src/data", "kodukord.md"); const content = fs.readFileSync(filePath, "utf8"); return (
{/* Page title (separate from markdown headings) */}

Kodukord

(

), h2: ({node, ...props}) => (

), ol: ({node, ...props}) => (
    ), ul: ({node, ...props}) => (
      ), p: ({node, ...props}) => (

      ), }} > {content}

); }