Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Aslemammad committed Dec 5, 2023
1 parent 368b20d commit 14ef684
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/waku/src/lib/middleware/rsc/ssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,13 @@ export const renderHtml = async <Context>(
{
get(_target, name: string) {
if (command === 'dev') {
console.log('filepathhh', resolvedFilePath);
const filePath = resolvedFilePath.startsWith('@fs/')
? decodeFilePathFromAbsolute(
resolvedFilePath.slice('@fs'.length),
)
: resolvedFilePath;
console.log('decodeFilePathFromAbsolute', filePath);
const wakuDist = joinPath(
fileURLToFilePath(import.meta.url),
'../../../..',
Expand Down
4 changes: 2 additions & 2 deletions packages/waku/src/lib/utils/node-fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ export const writeFile = (filePath: string, content: string) =>
export const stat = (filePath: string) =>
fsPromises.stat(filePathToOsPath(filePath));

export const rm = (dirPath: string, options?: RmOptions) =>
fsPromises.rm(filePathToOsPath(dirPath), options);
export const rm = (path: string, options?: RmOptions) =>
fsPromises.rm(filePathToOsPath(path), options);

0 comments on commit 14ef684

Please sign in to comment.