Skip to content

Commit b0d1d5c

Browse files
authored
fix use of DISABLE_OVERLOAD_PROTECTION (#27711)
1 parent 2d1969d commit b0d1d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middleware/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default function (app) {
122122
// Only used in production because our tests can overload the server
123123
if (
124124
process.env.NODE_ENV === 'production' &&
125-
!JSON.parse(process.env.DISABLE_OVERLOAD_PROTECTION | 'false')
125+
!JSON.parse(process.env.DISABLE_OVERLOAD_PROTECTION || 'false')
126126
) {
127127
app.use(protect)
128128
}

0 commit comments

Comments
 (0)