Skip to content

Commit

Permalink
create better path.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradgarropy committed Nov 29, 2023
1 parent 8591f9d commit 7982709
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/markdown.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ const getMarkdownBySlug = async (slug: string): Promise<Markdown> => {
}

const transformMarkdown = async (markdown: string): Promise<string> => {
const theme = fs.readFileSync("public/theme.json", "utf8")
const themePath = path.join(process.cwd(), "public/theme.json")
const theme = fs.readFileSync(themePath, "utf8")

const options: Options = {
theme: json5.parse(theme),
Expand Down

0 comments on commit 7982709

Please sign in to comment.