From 20c6c3e74fa5d16d51c8a197035538c7653c8a27 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 25 Mar 2026 15:29:38 +0100 Subject: [PATCH] fix(teable): point static symlink to nested static/static dir Build process reorganizes apps/nestjs-backend/static/ creating a nested static/static/{plugin,system} structure. The code resolves paths like 'static/system/automation-robot.png' relative to cwd, so the symlink must point to the inner static/ directory. Adds fallback: checks for nested structure first, falls back to direct path if not present. --- install/teable-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/teable-install.sh b/install/teable-install.sh index 80d38bb9..3c51560d 100644 --- a/install/teable-install.sh +++ b/install/teable-install.sh @@ -61,7 +61,11 @@ BACKEND_CACHE_SQLITE_URI=sqlite:///opt/teable/.assets/.cache.db NEXTJS_DIR=apps/nextjs-app EOF ln -sf /opt/teable /app -ln -sf /opt/teable/apps/nestjs-backend/static /opt/teable/static +if [ -d "/opt/teable/apps/nestjs-backend/static/static" ]; then + ln -sf /opt/teable/apps/nestjs-backend/static/static /opt/teable/static +else + ln -sf /opt/teable/apps/nestjs-backend/static /opt/teable/static +fi msg_ok "Configured Teable" msg_info "Creating Service"