This commit is contained in:
Janis
2022-12-18 16:56:58 +01:00
parent 67e6f292ed
commit bb49f58ace
24 changed files with 5519 additions and 5685 deletions

View File

@@ -0,0 +1,20 @@
import { marked } from "marked";
export default async function Page({
params,
}: {
params: { tutorial: string };
}) {
const requestData = await fetch(`http://127.0.0.1:3000/test.json`, {
cache: "no-store", //! Just for dev
/*next: { revalidate: 10 }*/
});
const data = await requestData.json();
return (
<div
dangerouslySetInnerHTML={{
__html: marked.parse(data.markdown) ?? "",
}}
></div>
);
}