nix/pkgs/baserow/web-frontend: fix

We need to use openssl-legacy-provider to fix an issue with OpenSSL 3.x,
because Webpack (or Nuxt?) need to use deprecated hashes.
This commit is contained in:
Luke Granger-Brown 2022-11-09 00:35:09 +00:00
parent 78d3689dfe
commit 79ae0d7fef
4 changed files with 5026 additions and 128 deletions
nix/pkgs/baserow
ops/nixos/lib

View file

@ -81,6 +81,7 @@ in
# Disable prompts
export MINIMAL=true
export NODE_OPTIONS=--openssl-legacy-provider
pushd $outpath/web-frontend
mkdir node_modules

File diff suppressed because it is too large Load diff

View file

@ -4,7 +4,7 @@
set -euo pipefail
BASEROW_SRC="$(nix-build $HOME/depot --no-out-link -A nix.pkgs.baserow.src)"
node2nix -i "$BASEROW_SRC/web-frontend/package.json" --nodejs-12
node2nix --development -i "$BASEROW_SRC/web-frontend/package.json" --nodejs-12
# Replace args.src with an explicit arg in node-packages.nix.
sed -E -i \

View file

@ -62,7 +62,9 @@ in
systemd.services.baserow-frontend = {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
inherit environment;
environment = environment // {
NODE_OPTIONS = "--openssl-legacy-provider";
};
serviceConfig = {
ExecStart = "${baserow.web-frontend}/bin/baserow-web-frontend --hostname 127.0.0.1 --port 28102";