zrhoffman commented on code in PR #7533:
URL: https://github.com/apache/trafficcontrol/pull/7533#discussion_r1199175860


##########
experimental/traffic-portal/server.ts:
##########
@@ -34,6 +34,14 @@ import {
 
 import { AppServerModule } from "./src/main.server";
 
+const versionParts = process.versions.node.split(".");
+if (versionParts.length !== 3) {
+       console.warn(`Unable to determine current node version, got 
${versionParts.length} items`);
+} else if (versionParts[0] < "16" || (versionParts[0] === "16" && 
versionParts[1] < "20")) {
+       console.error(`Unsupported version of node found: ${process.version}, 
expected >=16.20`);
+       process.exit(1);
+}
+

Review Comment:
   We shouldn't have to check version information in the code like this, and it 
creates more overhead for version upgrades. Is this part needed, and if so, why?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to