Files
Compass/web/pages/constitution.tsx
MartinBraquet 09858d0783 Change md path
2025-09-10 16:14:33 +02:00

20 lines
528 B
TypeScript

import React from 'react';
import fs from 'fs';
import path from 'path';
import MarkdownPage from "web/components/markdown";
const FILENAME = 'constitution';
export async function getStaticProps() {
const filePath = path.join(process.cwd(), 'public', 'md', FILENAME + '.md');
const content = fs.readFileSync(filePath, 'utf8');
return {props: {content}};
}
type Props = { content: string };
export default function Faq({content}: Props) {
return <MarkdownPage content={content} filename={FILENAME}></MarkdownPage>
}