wiki-js: drop node version check

We implemented v18 support, so this is not needed.
This commit is contained in:
Maximilian Bosch 2023-06-08 14:37:30 +02:00
parent 96fbaff572
commit 93c3b2e75a
No known key found for this signature in database
GPG key ID: 9A6EEA275CA5BE0A
2 changed files with 20 additions and 0 deletions

View file

@ -29,6 +29,7 @@ stdenv.mkDerivation rec {
# [1] https://github.com/requarks/wiki/discussions/6388
# [2] https://nodejs.org/en/blog/release/v17.0.0
# [3] https://nodejs.org/en/blog/release/v18.0.0
patches = [ ./drop-node-check.patch ];
nativeBuildInputs = [ jq moreutils ];
postPatch = ''
# Dirty hack to implement nodejs-18 support.

View file

@ -0,0 +1,19 @@
diff --git a/server/index.js b/server/index.js
index 7cdb4f80..161ebeb7 100644
--- a/server/index.js
+++ b/server/index.js
@@ -8,14 +8,6 @@ const { nanoid } = require('nanoid')
const { DateTime } = require('luxon')
const { gte } = require('semver')
-// ----------------------------------------
-// Check Node.js version
-// ----------------------------------------
-if (gte(process.version, '18.0.0')) {
- console.error('You\'re using an unsupported Node.js version. Please read the requirements.')
- process.exit(1)
-}
-
// ----------------------------------------
// Init WIKI instance
// ----------------------------------------