Add build to nodejs website

This commit is contained in:
thiloho
2023-08-01 21:58:41 +00:00
parent cbfd99d8a6
commit e3e53c5fe9

View File

@@ -1,4 +1,4 @@
{ inputs, ... }: { inputs, pkgs, ... }:
{ {
imports = [ imports = [
@@ -41,6 +41,23 @@
forceSSL = true; forceSSL = true;
root = inputs.website; root = inputs.website;
}; };
"aurora.thilohohlt.com" = {
enableACME = true;
forceSSL = true;
root = pkgs.buildNpmPackage {
name = "build-aurora-blog";
buildInputs = with pkgs; [
nodejs_18
];
src = builtins.path { path = ./.; name = "aurora-blog-example"; };
npmDepsHash = "";
npmBuild = "npm run build";
installPhase = ''
mkdir $out
cp -r dist/* $out
'';
};
};
}; };
}; };
}; };