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.
This commit is contained in:
CanbiZ (MickLesk)
2026-03-25 15:29:38 +01:00
parent 4fead19d7d
commit 20c6c3e74f

View File

@@ -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"