Skip to content

Commit

Permalink
Change server.js to cause rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
1fifoto committed Sep 30, 2023
1 parent 218f284 commit 53c3800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ function adjustSat(sat1, sat2, score) {
}

if (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'staging') {
console.log('process.env.NODE_ENV == production or staging');
// console.log('process.env.NODE_ENV == production or staging');
// If it’s not https already, redirect the same url on https.
app.use((req, res, next) => {
if (req.header('x-forwarded-proto') !== 'https') {
Expand All @@ -541,7 +541,7 @@ if (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'staging')
res.sendFile(path.join(__dirname, 'client/build', 'index.html'));
});
} else {
console.log('process.env.NODE_ENV != production or staging');
// console.log('process.env.NODE_ENV != production or staging');
}

const port = process.env.PORT || 5000;
Expand Down

0 comments on commit 53c3800

Please sign in to comment.