Unverified Commit 5b78de01 authored by Josh Story's avatar Josh Story Committed by GitHub

Remove leading underscore for unhandledRejection envvar (#83732)

parent 72cf080a
......@@ -30,7 +30,7 @@ const MODE:
| '0'
| ''
| string
| undefined = process.env.__NEXT_USE_UNHANDLED_REJECTION_FILTER
| undefined = process.env.NEXT_USE_UNHANDLED_REJECTION_FILTER
let ENABLE_UHR_FILTER = false
let DEBUG_UHR_FILTER = false
......@@ -53,7 +53,7 @@ switch (MODE) {
default:
if (typeof MODE === 'string') {
console.error(
`__NEXT_USE_UNHANDLED_REJECTION_FILTER has an unrecognized value: ${JSON.stringify(MODE)}. Use "enabled", "disabled", or "debug" or omit the environment variable altogether`
`NEXT_USE_UNHANDLED_REJECTION_FILTER has an unrecognized value: ${JSON.stringify(MODE)}. Use "enabled", "disabled", or "debug" or omit the environment variable altogether`
)
}
}
......
......@@ -11,7 +11,7 @@ describe('Cache Components Errors', () => {
skipStart: !isNextDev,
skipDeployment: true,
env: {
__NEXT_USE_UNHANDLED_REJECTION_FILTER: 'enabled',
NEXT_USE_UNHANDLED_REJECTION_FILTER: 'enabled',
},
})
const isRspack = !!process.env.NEXT_RSPACK
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment