diff --git a/deploy/deploy.sh b/deploy/deploy.sh index a74a718..3d31523 100644 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -45,6 +45,20 @@ run_deploy() { echo "== BUILD UI ==" cd "$APP_DIR/ui" npm ci --no-audit --no-fund --include=optional + + # npm scriptlerinde PATH onceligi nedeniyle node_modules/.bin/sass kullanilir. + # Bu dosya pure JS olursa --embedded hata verir; global Dart Sass binary'sine bagliyoruz. + SASS_BIN="$(command -v sass || true)" + if [[ -z "$SASS_BIN" ]]; then + echo "sass command not found in PATH." + return 1 + fi + "$SASS_BIN" --embedded --version >/dev/null 2>&1 || { + echo "Global sass supports --embedded is not available." + return 1 + } + ln -sf "$SASS_BIN" "$APP_DIR/ui/node_modules/.bin/sass" + npm run build echo "== BUILD API =="