Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: normalize compose project name for vite cache volume

Claudeb24f9387c1fc
diff --git a/Makefile b/Makefile
index 44059a5f0f..89740eee36 100644
--- a/Makefile
+++ b/Makefile
@@ -19,9 +19,12 @@ down:
# Wipes the persisted Vite dep-prebundle cache. Reach for this when the dev server serves
# stale or broken /node_modules/.vite/deps chunks; it re-optimizes on the next `make up-dev`.
COMPOSE_PROJECT_NAME ?= $(notdir $(CURDIR))
+# docker compose normalizes the project name (lowercased, chars outside [a-z0-9_-] dropped)
+# before prefixing volume names, so normalize it the same way to match dirs like PLATFOR-532.
+COMPOSE_VOLUME_PREFIX = $(shell echo '$(COMPOSE_PROJECT_NAME)' | tr '[:upper:]' '[:lower:]' | tr -cd 'a-z0-9_-')
clear-frontend-cache:
docker compose -f docker-compose.dev.yml rm -sf frontend
- docker volume rm -f $(COMPOSE_PROJECT_NAME)_frontend_vite_cache
+ docker volume rm -f $(COMPOSE_VOLUME_PREFIX)_frontend_vite_cache
reviewable-ui:
cd frontend && \