File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -50,16 +50,14 @@ let insecureHttpsAgent: UndiciAgent | undefined
5050/**
5151 * Get fetch options for HTTPS requests
5252 * Automatically allows insecure TLS for HTTPS (self-signed certificates)
53- * Can be disabled via NEXT_DEVTOOLS_ALLOW_INSECURE_TLS=false
53+ * Can be disabled via NODE_TLS_REJECT_UNAUTHORIZED=0
5454 */
5555function getFetchOptions ( protocol : "http" | "https" ) {
5656 // For HTTPS, automatically allow insecure TLS (for self-signed certificates)
57- // Can be disabled via environment variable: NEXT_DEVTOOLS_ALLOW_INSECURE_TLS=false
57+ // Can be disabled via environment variable: NODE_TLS_REJECT_UNAUTHORIZED=0
5858 const allowInsecure =
59- protocol === "https" && (
60- process . env . NEXT_DEVTOOLS_ALLOW_INSECURE_TLS !== "false" ||
61- process . env . NODE_TLS_REJECT_UNAUTHORIZED === "0"
62- )
59+ protocol === "https" && process . env . NODE_TLS_REJECT_UNAUTHORIZED === "0"
60+
6361
6462 if ( protocol !== "https" || ! allowInsecure ) return { }
6563
You can’t perform that action at this time.
0 commit comments