Skip to content

Commit

Permalink
ssl redirect on staging
Browse files Browse the repository at this point in the history
alexanmtz committed Jan 25, 2024
1 parent ba2c155 commit 2fff964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== 'production') {
const cors = require('cors')
app.use(cors())
}
if(process.env.NODE_ENV === 'production') {
if(process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'staging') {
app.use(sslRedirect())
}

0 comments on commit 2fff964

Please sign in to comment.