SyntaxFix
Write A Post
Hire A Developer
Questions
This can be resolved in another way:
app.get("/", function(req, res){ res.send(`${process.env.PWD}/index.html`) });
process.env.PWD will prepend the working directory when the process was started.
process.env.PWD