Skip to content

Commit

Permalink
add ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
willpuckett committed Sep 4, 2024
1 parent 97f0019 commit 675c88c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export async function configureBlog(
let directory;

try {
const blogPath = fromFileUrl(`file://${url}`);
const blogPath = fromFileUrl(IS_DEV ? `file://${url}` : url);
directory = dirname(blogPath);
} catch (e) {
console.error(e);
Expand Down

0 comments on commit 675c88c

Please sign in to comment.