From 750836a582e3d925eb4c322c5cffd15166d45338 Mon Sep 17 00:00:00 2001 From: tdharris Date: Thu, 3 Oct 2024 18:29:18 -0600 Subject: [PATCH] fix(deno): attempt same fix as #150 --- blog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog.tsx b/blog.tsx index 8f5c9fd..7c20225 100644 --- a/blog.tsx +++ b/blog.tsx @@ -173,7 +173,7 @@ export async function configureBlog( let directory; try { - const blogPath = fromFileUrl(url); + const blogPath = fromFileUrl(IS_DEV ? `file://${url}` : url); directory = dirname(blogPath); } catch (e) { console.error(e);