Use SvelteKit render function for templating and add error page

This commit is contained in:
thiloho
2024-08-17 19:29:10 +02:00
parent e41b963666
commit f3278fb1f6
11 changed files with 141 additions and 154 deletions

View File

@@ -100,7 +100,6 @@ in
User = cfg.user;
Group = cfg.group;
Restart = "always";
WorkingDirectory = "${cfg.package}/web-app";
};
script = ''

View File

@@ -32,23 +32,12 @@ let
cp -r db/migrations/* $out/rest-api/db/migrations
'';
};
templates = stdenv.mkDerivation {
inherit pname version;
name = "archtika-templates";
src = ../templates;
installPhase = ''
mkdir -p $out/templates
cp -r * $out/templates
'';
};
in
symlinkJoin {
name = pname;
paths = [
web
api
templates
];
meta = with lib; {