Upgrade Node.js runtime
Baserow currently uses Node.js 12 for its front-end component that we want to upgrade to a current version (16.13.1 LTS or 17.3.1).
The upgrade might require updating OS versions, base Docker images, or installing new Node.js versions using a Node version manager.
What might need to be updated:
-
web-frontend
Dockerfile - Cloudron configuration
- Heroku configuration
- Vagrantfile
- "Install on Ubuntu" guide
Optionally:
- Specify required Node.js runtime version in
package.json
(https://docs.npmjs.com/cli/v8/configuring-npm/package-json#engines)
Considerations:
- Node 17 doesn't play nicely with the older Webpack version we have (https://github.com/webpack/webpack/issues/14532), can be solved with
export NODE_OPTIONS=--openssl-legacy-provider
.
Edited by Petr Stribny