Skip to content

Commit ac1e12d

Browse files
committed
Disable the Node platform check for Windows 7 compatibility
Node no longer officially supports Windows 7, and exits hard in 14+ if it's used. In reality though, all functionality we care about works - the main issue that blocks this is around REPL behaviour. For now we just disable these checks entirely so that the server still runs.
1 parent 8ae1229 commit ac1e12d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ if (!amMainInstance) {
318318
detached: !isWindows, // Detach on Linux, so we can cleanly kill as a group
319319
env: Object.assign({}, process.env, {
320320
HTK_SERVER_TOKEN: AUTH_TOKEN,
321+
NODE_SKIP_PLATFORM_CHECK: '1',
321322
NODE_OPTIONS:
322323
process.env.HTTPTOOLKIT_NODE_OPTIONS || // Allow manually configuring node options
323324
"--max-http-header-size=102400" // By default, set max header size to 100KB

0 commit comments

Comments
 (0)