Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sevalas committed Mar 20, 2023
1 parent f54e5fe commit c5072c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server-on-render.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const fullPath = path.join(__dirname, "/dist/desafio-accenture-svl");
const files = fs.readdirSync(fullPath);
files.forEach((file) => console.log(file));

app.use(express.static(path.join(__dirname, "../dist/desafio-accenture-svl")));
app.use(express.static(path.join(__dirname, "/dist/desafio-accenture-svl")));
app.get("*", (req, res) =>
res.sendFile(path.join(__dirname, "../dist/desafio-accenture-svl/index.html"))
res.sendFile(path.join(__dirname, "/dist/desafio-accenture-svl/index.html"))
);

app.listen(port, () => console.log("Server Running"));

0 comments on commit c5072c7

Please sign in to comment.