Skip to content

Commit

Permalink
remove hosting all dist file from example
Browse files Browse the repository at this point in the history
These are not needed as has a risk of leaking package.json details
  • Loading branch information
jkasten2 committed Oct 26, 2023
1 parent 65ec0ba commit 676c923
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion express_webpack/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const options = {
cert: fs.readFileSync('certs/dev-ssl.crt')
}

app.use(express.static(DIST_DIR))
app.get('/', (req, res) => {
res.sendFile(HTML_FILE);
})
Expand Down

0 comments on commit 676c923

Please sign in to comment.