outline: fix email notifications

Outline needs it's mail template at public/email relative to this
working directory.

e3db7455b3/server/emails/mailer.tsx (L87)
This commit is contained in:
Alexander Sieg 2023-01-18 16:55:21 +01:00
parent 1a355ae751
commit f00a7e7e27
No known key found for this signature in database

View File

@ -56,7 +56,12 @@ stdenv.mkDerivation rec {
runHook preInstall
mkdir -p $out/bin $out/share/outline
mv public node_modules build $out/share/outline/
mv node_modules build $out/share/outline/
# On NixOS the WorkingDirectory is set to the build directory, as
# this contains files needed in the onboarding process. This folder
# must also contain the `public` folder for mail notifications to
# work, as it contains the mail templates.
mv public $out/share/outline/build
node_modules=$out/share/outline/node_modules
build=$out/share/outline/build