Skip to content

Commit 627a5b1

Browse files
author
vikasrohit
authored
Merge pull request #1101 from topcoder-platform/hotfix/stop-serving-source-code-files
Hotfix/stop serving source code files
2 parents e8a0109 + a91472b commit 627a5b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function check () {
1717
}
1818
app.use(healthCheck.middleware([check]))
1919
// app.use(requireHTTPS) // removed because app servers don't handle https
20-
app.use(express.static(__dirname))
20+
// app.use(express.static(__dirname))
2121
app.use(express.static(path.join(__dirname, 'build')))
2222
app.get('/*', (req, res) => res.sendFile(path.join(__dirname, 'build', 'index.html')))
2323
const port = process.env.PORT || 3000

0 commit comments

Comments
 (0)