Skip to content

Commit b159b94

Browse files
author
vikasrohit
authored
Merge pull request #1102 from topcoder-platform/hotfix/stop-serving-source-code-files
Hotfix/stop serving source code files
2 parents e36e09b + a91472b commit b159b94

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)