Skip to content

Commit

Permalink
__dirname is not defined (#5269)
Browse files Browse the repository at this point in the history
Co-authored-by: Jay <jasonsaayman@gmail.com>
  • Loading branch information
836334258 and jasonsaayman committed Nov 22, 2022
1 parent 86eeff0 commit 7a4c0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandbox/server.js
Expand Up @@ -11,7 +11,7 @@ function pipeFileToResponse(res, file, type) {
});
}

fs.createReadStream(path.join(__dirname, file)).pipe(res);
fs.createReadStream(path.join(path.resolve() ,'sandbox', file)).pipe(res);
}

server = http.createServer(function (req, res) {
Expand Down

0 comments on commit 7a4c0ea

Please sign in to comment.