update content
This commit is contained in:
parent
d22eb07a55
commit
339a4cb482
16 changed files with 166 additions and 264 deletions
|
|
@ -6,7 +6,8 @@ import html from "remark-html";
|
|||
|
||||
const root = path.join(process.cwd(), "artifacts");
|
||||
|
||||
export async function getArtifact(dir: string, id: string) {
|
||||
export const getArtifact = async (dir: string, id: string) => {
|
||||
// set file path
|
||||
const fullPath = path.join(root, dir, `${id}.md`);
|
||||
|
||||
// read file contents
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue