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:
parent
78d3689dfe
commit
79ae0d7fef
4 changed files with 5026 additions and 128 deletions
|
@ -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
|
@ -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 \
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue