Skip to content

Commit

Permalink
Fix: support passing a file path instead of a file URL to `configureB…
Browse files Browse the repository at this point in the history
…log`
  • Loading branch information
arnauorriols committed Oct 7, 2024
1 parent 071a905 commit 87d68c4
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(url);
const blogPath = URL.canParse(url) ? fromFileUrl(url) : url;
directory = dirname(blogPath);
} catch (e) {
console.error(e);
Expand Down

0 comments on commit 87d68c4

Please sign in to comment.