From 419893df01cc9616f7bf8b84eff5c3546ea1d9d6 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 25 Mar 2026 12:14:36 +0100 Subject: [PATCH] fix(storyteller): correct standalone path, add CI=1, copy static assets - WorkingDirectory: web/.next/standalone/web (not .next/standalone/web) - CI=1 to prevent interactive prompts during yarn build - Copy .next/static and public into standalone output --- install/storyteller-install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install/storyteller-install.sh b/install/storyteller-install.sh index 967f819b..6eb63c65 100644 --- a/install/storyteller-install.sh +++ b/install/storyteller-install.sh @@ -50,10 +50,15 @@ msg_ok "Set up Storyteller" msg_info "Building Storyteller" cd /opt/storyteller +export CI=1 export NODE_ENV=production export NEXT_TELEMETRY_DISABLED=1 export SQLITE_NATIVE_BINDING=/opt/storyteller/node_modules/better-sqlite3/build/Release/better_sqlite3.node $STD yarn workspaces foreach -Rpt --from @storyteller-platform/web --exclude @storyteller-platform/eslint run build +cp -r /opt/storyteller/web/.next/static /opt/storyteller/web/.next/standalone/web/.next/static +if [[ -d /opt/storyteller/web/public ]]; then + cp -r /opt/storyteller/web/public /opt/storyteller/web/.next/standalone/web/public +fi msg_ok "Built Storyteller" msg_info "Creating Service" @@ -65,7 +70,7 @@ After=network.target [Service] Type=simple User=root -WorkingDirectory=/opt/storyteller/.next/standalone/web +WorkingDirectory=/opt/storyteller/web/.next/standalone/web EnvironmentFile=/opt/storyteller/.env ExecStart=/usr/bin/node --enable-source-maps server.js Restart=on-failure