mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 03:21:35 +01:00
Add build to nodejs website
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ inputs, ... }:
|
||||
{ inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
@@ -41,6 +41,23 @@
|
||||
forceSSL = true;
|
||||
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
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user