Skip to content

Commit 6d4df8e

Browse files
authored
remove special flags (#93)
1 parent e38cdc0 commit 6d4df8e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/_internal/nextjs-runtime-manager.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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
*/
5555
function 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

0 commit comments

Comments
 (0)