Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to NodeJS v20.x (using a workaround) #688

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ RUN apt-get update \
# Clean up the apt cache
&& rm -rf /var/lib/apt/lists/*

# Work around an issue with a deprecated hash function in Rails Webpacker 5
ENV NODE_OPTIONS=--openssl-legacy-provider

# Specify a major version of Node.js to download and install
ENV NODEJS_MAJOR_VERSION=16
ENV NODEJS_MAJOR_VERSION=20

# Download and extract Node.js from archive supplied by nodejs.org
RUN curl -L https://nodejs.org/dist/latest-v$NODEJS_MAJOR_VERSION\.x/SHASUMS256.txt -O \
Expand Down
4 changes: 4 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
"LANG": {
"required": true
},
"NODE_OPTIONS": {
"required": true,
"value": "--openssl-legacy-provider"
},
"RACK_ENV": {
"required": true
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
},
"engines": {
"yarn": "1.x",
"node": "16.x"
"node": "20"
}
}