opengovsg/GoGovSG

Upgrade node version to 18

halfwhole opened this issue · 0 comments

Go is currently on node 16 (LTS), whose security support will end on 11 Sep 2023. It should be upgraded to node 18 (LTS), which will extend the security support to 30 Apr 2025. https://endoflife.date/nodejs

Note that when upgrading from node 16 to >=17, there will be issues with webpack due to the newer version of node using OpenSSL 3.0. This can be resolved with e.g. export NODE_OPTIONS=--openssl-legacy-provider, but we may want to find a better solution if possible