components/{docs,frontend}: use nodejs_24 again

We kept nodejs_22 in 6dc84faaec because of
a bug in NPM preventing us from upgrading[1]. This got solved in the
meantime and seems to have landed in a nodejs release (these usually
bundle NPM versions), so we can use the nodejs version that upstream
also uses again.

[1] https://github.com/npm/cli/issues/8541
This commit is contained in:
Maximilian Bosch 2025-10-27 14:28:29 +01:00
parent be208eac08
commit 3cf7092397
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -2,13 +2,13 @@
authentik-src,
authentik-version,
buildNapalmPackage,
nodejs_22,
nodejs_24,
}:
buildNapalmPackage "${authentik-src}/website" {
version = authentik-version; # 0.0.0 specified upstream in package.json
NODE_ENV = "production";
nodejs = nodejs_22;
nodejs = nodejs_24;
npmCommands = [
"cp -v ${authentik-src}/SECURITY.md ../SECURITY.md"
"cp -vr ${authentik-src}/blueprints ../blueprints"

View file

@ -3,12 +3,12 @@
authentik-version,
authentikComponents,
buildNapalmPackage,
nodejs_22,
nodejs_24,
}:
buildNapalmPackage "${authentik-src}/web" rec {
version = authentik-version; # 0.0.0 specified upstream in package.json
NODE_ENV = "production";
nodejs = nodejs_22;
nodejs = nodejs_24;
preBuild = ''
ln -sv ${authentikComponents.docs} ../website
ln -sv ${authentik-src}/package.json ../