Skip to content

Commit

Permalink
Let's 404 the /early-access page outside of local rather than 403-ing
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMGreene committed Nov 13, 2020
1 parent 53910e2 commit 1a732ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/early-access-context.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = function earlyAccessContext (req, res, next) {
if (process.env.NODE_ENV === 'production') {
return res.status(403).end()
return res.status(404).end()
}

const earlyAccessPages = req.context.pages
Expand Down

0 comments on commit 1a732ea

Please sign in to comment.