From f3e8952284de20928f10dd2af6a5078d39a61bf7 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Wed, 9 Nov 2022 09:41:27 +0100 Subject: [PATCH] Add console logs --- code/lib/core-server/src/utils/server-statics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/core-server/src/utils/server-statics.ts b/code/lib/core-server/src/utils/server-statics.ts index 99b135ad9e62..55d72d14e431 100644 --- a/code/lib/core-server/src/utils/server-statics.ts +++ b/code/lib/core-server/src/utils/server-statics.ts @@ -73,7 +73,7 @@ export const parseStaticDir = async (arg: string) => { const splitIndex = lastColonIndex !== -1 && !isWindowsRawDirOnly ? lastColonIndex : arg.length; const targetRaw = arg.substring(splitIndex + 1) || '/'; - const target = targetRaw.split(path.sep).join(path.posix.sep); // Ensure target has forward-slash path + const target = targetRaw.split(path.win32.sep).join(path.posix.sep); // Ensure target has forward-slash path const rawDir = arg.substring(0, splitIndex); const staticDir = path.isAbsolute(rawDir) ? rawDir : `./${rawDir}`;