Skip to content

Commit

Permalink
Merge pull request #74 from datasektionen/node22
Browse files Browse the repository at this point in the history
Node version 22
  • Loading branch information
Benjaneb authored Jun 15, 2024
2 parents a9d0848 + 9eca06f commit 2e54969
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:21-alpine3.18 AS base
FROM node:22-alpine3.20 AS base

WORKDIR /app
ENV NODE_OPTIONS=--openssl-legacy-provider
Expand Down
3 changes: 0 additions & 3 deletions bin/razzle.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ switch (script) {
const result = spawn.sync(
'node',
[
'-r',
'esm',
require.resolve('razzle/scripts/' + script)
].concat(args),
{ stdio: 'inherit' }
Expand All @@ -35,7 +33,6 @@ switch (script) {
process.exit(1);
}
process.exit(result.status);
break;
}
default:
console.log('Unknown script "' + script + '".');
Expand Down
11 changes: 1 addition & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
"scripts": {
"start:dev": "node bin/razzle.js start",
"build": "node bin/razzle.js build",
"start": "node -r esm build/server.js",
"start": "node build/server.js",
"heroku-postbuild": "node bin/razzle.js build"
},
"dependencies": {
"babel-preset-stage-0": "^6.24.1",
"cross-fetch": "^2.2.6",
"esm": "^3.2.25",
"express": "^4.18.2",
"is-in-browser": "^1.1.3",
"lodash": "^4.17.21",
Expand Down

0 comments on commit 2e54969

Please sign in to comment.