From 653950f4a23c1fde0fa7d778c38aae3d936a5fab Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Sun, 24 Sep 2023 12:56:01 +0200 Subject: [PATCH] Use pure `next start` --- conf/systemd.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index 3606d61..7f6806e 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -10,7 +10,8 @@ WorkingDirectory=__INSTALL_DIR__/ Environment=NODE_ENV=production Environment="__YNH_NODE_LOAD_PATH__" Environment=NEXT_TELEMETRY_DISABLED=1 -ExecStart=__YNH_NPM__ run start-env +Environment=PORT=__PORT__ +ExecStart=__YNH_NPM__ exec next start # Sandboxing options to harden security # Depending on specificities of your service/app, you may need to tweak these