diff --git a/server-on-render.js b/server-on-render.js index 246d6be6..0a800127 100644 --- a/server-on-render.js +++ b/server-on-render.js @@ -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"));