diff --git a/src/listen.ts b/src/listen.ts index 1acb23e..32232c1 100644 --- a/src/listen.ts +++ b/src/listen.ts @@ -186,11 +186,11 @@ export async function listen( }; if (serverOptions.path) { - let _path = serverOptions.path - const currentDirPath = `.${sep}` + let _path = serverOptions.path; + const currentDirPath = `.${sep}`; if (!(isAbsolute(_path) || _path.startsWith(currentDirPath))) { - _path = currentDirPath + _path + _path = currentDirPath + _path; } _addURL("local", _path); return urls;