Skip to content

Commit cadadbf

Browse files
author
Oguzhan
authored
Merge pull request #31 from hepsiburada/fix/rollback-welcome-page
fix: welcome page reverted
2 parents a44c5e3 + 86587ff commit cadadbf

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "voltranjs",
3-
"version": "1.0.21",
3+
"version": "1.0.22",
44
"main": "src/index.js",
55
"author": "Hepsiburada Technology Team",
66
"bin": {

src/server.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,7 @@ const handleProcessMessage = message => {
6262

6363
const handleUrls = async (req, res, next) => {
6464
if (req.url === '/' && req.method === 'GET') {
65-
if (process.env.NODE_ENV === 'production') {
66-
res
67-
.status(HTTP_STATUS_CODES.INTERNAL_SERVER_ERROR)
68-
.html('<h1>Aradığınız sayfa bulunamadı...</h1>');
69-
} else {
70-
res.html(Welcome());
71-
}
65+
res.html(Welcome());
7266
} else if (req.url === '/metrics' && req.method === 'GET' && !enablePrometheus) {
7367
res.setHeader('Content-Type', prom.register.contentType);
7468
res.end(prom.register.metrics());

0 commit comments

Comments
 (0)