Skip to content

Commit

Permalink
Add console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Nov 9, 2022
1 parent 8d42b4f commit 8e470b7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions code/lib/core-server/src/utils/server-statics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,23 @@ export const parseStaticDir = async (arg: string) => {
const targetDir = target.replace(/^\/?/, './');
const targetEndpoint = targetDir.substring(1);

console.log({
arg,
lastColonIndex,
isWindowsAbsolute,
isWindowsRawDirOnly,
splitIndex,
targetRaw,
pathSep: path.sep,
pathPosixSep: path.posix.sep,
target,
rawDir,
staticDir,
staticPath,
targetDir,
targetEndpoint,
});

if (!(await pathExists(staticPath))) {
throw new Error(
dedent(chalk`
Expand Down

0 comments on commit 8e470b7

Please sign in to comment.